cvs: Zend / zend_execute_API.c
| From: | Stanislav Malyshev | Date: | Mon, 09 Sep 2002 14:35:48 +0000 |
| Subject: | cvs: Zend / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-411@lists.php.net to get a copy of this message | ||
stas Mon Sep 9 10:35:48 2002 EDT
Modified files:
/Zend zend_execute_API.c
Log:
protect EG(uninitialized_zval) from being referenced
this should fix bug #14582
# though the leak is still there
Index: Zend/zend_execute_API.c
diff -u Zend/zend_execute_API.c:1.147 Zend/zend_execute_API.c:1.148
--- Zend/zend_execute_API.c:1.147 Sat Sep 7 10:10:43 2002
+++ Zend/zend_execute_API.c Mon Sep 9 10:35:47 2002
@@ -116,6 +116,8 @@
void init_executor(TSRMLS_D)
{
INIT_ZVAL(EG(uninitialized_zval));
+ /* trick to make uninitialized_zval never be modified, passed by ref, etc. */
+ EG(uninitialized_zval).refcount++;
INIT_ZVAL(EG(error_zval));
EG(uninitialized_zval_ptr)=&EG(uninitialized_zval);
EG(error_zval_ptr)=&EG(error_zval);