summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-01-04 11:02:21 +0800
committerXinchen Hui <laruence@php.net>2013-01-04 11:02:21 +0800
commitc3e6de2227f0200b9db318e181603ffba7991489 (patch)
tree6db07d93fb64ecbc0ff77db83cfb439cf87306be
parent712710bfecb2e421306246f2e179727f0494a019 (diff)
downloadphp-git-c3e6de2227f0200b9db318e181603ffba7991489.tar.gz
Fixed bug #63899 (Use after scope error in zend_compile)
-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));
}