summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2002-09-10 08:37:18 +0000
committerStanislav Malyshev <stas@php.net>2002-09-10 08:37:18 +0000
commit7fe216e27b22eca5fd90870f6352bf04f959a22c (patch)
treea31bcef18e292a47cc09705d95734d12195fa9a7 /Zend/zend_execute_API.c
parentca6717e348434fef43ba4963dcec10b43a2bc487 (diff)
downloadphp-git-7fe216e27b22eca5fd90870f6352bf04f959a22c.tar.gz
MFZE1
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index a1d30cb15b..a17d70aa45 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -113,6 +113,8 @@ static int is_not_internal_class(zend_class_entry **ce TSRMLS_DC)
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);