Skip to content

Commit c3e6de2

Browse files
committed
Fixed bug #63899 (Use after scope error in zend_compile)
1 parent 712710b commit c3e6de2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
?? ??? 2013, PHP 5.3.22
66

77
- Zend Engine:
8+
. Fixed bug #63899 (Use after scope error in zend_compile). (Laruence)
89
. Fixed bug #63762 (Sigsegv when Exception::$trace is changed by user).
910
(Johannes)
1011

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3417,7 +3417,7 @@ void zend_do_begin_class_declaration(const znode *class_token, znode *class_name
34173417
tmp.u.constant = *CG(current_namespace);
34183418
zval_copy_ctor(&tmp.u.constant);
34193419
zend_do_build_namespace_name(&tmp, &tmp, class_name TSRMLS_CC);
3420-
class_name = &tmp;
3420+
*class_name = tmp;
34213421
efree(lcname);
34223422
lcname = zend_str_tolower_dup(Z_STRVAL(class_name->u.constant), Z_STRLEN(class_name->u.constant));
34233423
}

0 commit comments

Comments
 (0)