From: Derick Rethans Date: Sun, 18 Nov 2007 21:29:29 +0000 (+0000) Subject: - Initialize the reserved resource bits so that they can be reliably used. X-Git-Tag: RELEASE_2_0_0a1~1348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1dff275403c1b319f723cc8f17ff9ad0a61f136;p=php - Initialize the reserved resource bits so that they can be reliably used. --- diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 8b170c5fcc..90d3ec09f0 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -107,6 +107,8 @@ void init_op_array(zend_op_array *op_array, zend_uchar type, int initial_ops_siz op_array->fn_flags = CG(interactive)?ZEND_ACC_INTERACTIVE:0; + memset(op_array->reserved, 0, ZEND_MAX_RESERVED_RESOURCES * sizeof(void*)); + zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) zend_extension_op_array_ctor_handler, op_array TSRMLS_CC); } /* }}} */