summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--Zend/zend_compile.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index eff30f9226..0b5c207caf 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ PHP NEWS
?? ??? 2013, PHP 5.3.22
- Zend Engine:
+ . Fixed bug #63899 (Use after scope error in zend_compile). (Laruence)
. Fixed bug #63762 (Sigsegv when Exception::$trace is changed by user).
(Johannes)
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 7725fb7321..e39579594c 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -3417,7 +3417,7 @@ void zend_do_begin_class_declaration(const znode *class_token, znode *class_name
tmp.u.constant = *CG(current_namespace);
zval_copy_ctor(&tmp.u.constant);
zend_do_build_namespace_name(&tmp, &tmp, class_name TSRMLS_CC);
- class_name = &tmp;
+ *class_name = tmp;
efree(lcname);
lcname = zend_str_tolower_dup(Z_STRVAL(class_name->u.constant), Z_STRLEN(class_name->u.constant));
}