]> granicus.if.org Git - php/commitdiff
- MFH: Initialize the reserved resource bits so that they can be reliably used.
authorDerick Rethans <derick@php.net>
Sun, 18 Nov 2007 21:29:55 +0000 (21:29 +0000)
committerDerick Rethans <derick@php.net>
Sun, 18 Nov 2007 21:29:55 +0000 (21:29 +0000)
Zend/zend_opcode.c

index c883cf45d3e5f7e14a2745eafdc0c022f0e90036..edabb98ada61d3245729af6638e91ba9c001193d 100644 (file)
@@ -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);
 }