1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 17:13:31 +02:00

- Increase op_array size faster and make eralloc() it in the end to save

memory.
This commit is contained in:
Andi Gutmans
2000-10-15 19:52:01 +00:00
parent 5d98e49cbb
commit 54754242da

View File

@@ -211,7 +211,7 @@ zend_op *get_next_op(zend_op_array *op_array CLS_DC)
zend_bailout();
}
#endif
op_array->size *= 2;
op_array->size *= 4;
op_array_alloc_ops(op_array);
}
@@ -302,6 +302,8 @@ int pass_two(zend_op_array *op_array)
}
opline++;
}
op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, sizeof(zend_op)*op_array->last);
op_array->size = op_array->last;
op_array->done_pass_two = 1;
return 0;
}