From: Stanislav Malyshev Date: Tue, 10 Sep 2002 08:37:18 +0000 (+0000) Subject: MFZE1 X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fe216e27b22eca5fd90870f6352bf04f959a22c;p=php MFZE1 --- 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);