From: Derick Rethans Date: Sun, 18 Nov 2007 21:29:55 +0000 (+0000) Subject: - MFH: Initialize the reserved resource bits so that they can be reliably used. X-Git-Tag: RELEASE_1_3_1~620 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=991f1d8d7ad8f687c50d52d079fdf8836a41f8c3;p=php - MFH: 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 c883cf45d3..edabb98ada 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -101,6 +101,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); }