summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-04-29 08:15:20 +0000
committerDmitry Stogov <dmitry@php.net>2008-04-29 08:15:20 +0000
commit2ecf4bb0a7c66bc882ff82d66d86ac6be5bffdf7 (patch)
tree128afacc2d1cf3234b0f59dccb3bf63633f0c7e7 /Zend/zend.c
parentc75658c477cead4cb7c4a9ae6a72c6d8a1d98cee (diff)
downloadphp-git-2ecf4bb0a7c66bc882ff82d66d86ac6be5bffdf7.tar.gz
Lazy EG(active_symbol_table) initialization
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index c2cb9b4da9..1e622e25cb 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1071,6 +1071,9 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */
Z_LVAL_P(z_error_lineno) = error_lineno;
Z_TYPE_P(z_error_lineno) = IS_LONG;
+ if (!EG(active_symbol_table)) {
+ zend_rebuild_symbol_table(TSRMLS_C);
+ }
Z_ARRVAL_P(z_context) = EG(active_symbol_table);
Z_TYPE_P(z_context) = IS_ARRAY;
zval_copy_ctor(z_context);