cvs: ZendEngine2 / zend_execute_API.c
| From: | Stanislav Malyshev | Date: | Tue, 10 Sep 2002 08:37:18 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-417@lists.php.net to get a copy of this message | ||
stas Tue Sep 10 04:37:18 2002 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
MFZE1
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.173 ZendEngine2/zend_execute_API.c:1.174
--- ZendEngine2/zend_execute_API.c:1.173 Tue Sep 10 04:35:50 2002
+++ ZendEngine2/zend_execute_API.c Tue Sep 10 04:37:18 2002
@@ -113,6 +113,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);