Use fast method to check if first arguments should be passed by reference (not tested onbig endian).

This commit is contained in:
Dmitry Stogov 2015-04-22 21:46:13 +03:00
parent af33279a6c
commit 15a5f61cf4
11 changed files with 103 additions and 6 deletions

View file

@ -51,6 +51,9 @@ static void op_array_alloc_ops(zend_op_array *op_array, uint32_t size)
void init_op_array(zend_op_array *op_array, zend_uchar type, int initial_ops_size)
{
op_array->type = type;
op_array->arg_flags[0] = 0;
op_array->arg_flags[1] = 0;
op_array->arg_flags[2] = 0;
op_array->refcount = (uint32_t *) emalloc(sizeof(uint32_t));
*op_array->refcount = 1;