cvs: ZendEngine2(PHP_5_2) / zend_opcode.c
| From: | Derick Rethans | Date: | Sun, 18 Nov 2007 21:30:30 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend_opcode.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6169@lists.php.net to get a copy of this message | ||
derick Sun Nov 18 21:30:30 2007 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend_opcode.c
Log:
- MFH: Initialize the reserved resource bits so that they can be reliably used.
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_opcode.c?r1=1.110.2.6.2.3&r2=1.110.2.6.2.4&diff_format=u
Index: ZendEngine2/zend_opcode.c
diff -u ZendEngine2/zend_opcode.c:1.110.2.6.2.3 ZendEngine2/zend_opcode.c:1.110.2.6.2.4
--- ZendEngine2/zend_opcode.c:1.110.2.6.2.3 Mon Apr 16 08:09:55 2007
+++ ZendEngine2/zend_opcode.c Sun Nov 18 21:30:30 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_opcode.c,v 1.110.2.6.2.3 2007/04/16 08:09:55 dmitry Exp $ */
+/* $Id: zend_opcode.c,v 1.110.2.6.2.4 2007/11/18 21:30:30 derick Exp $ */
#include <stdio.h>
@@ -101,6 +101,8 @@
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);
}