Commit:    c3e6de2227f0200b9db318e181603ffba7991489
Author:    Xinchen Hui <larue...@php.net>         Fri, 4 Jan 2013 11:02:21 +0800
Parents:   712710bfecb2e421306246f2e179727f0494a019
Branches:  PHP-5.3

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=c3e6de2227f0200b9db318e181603ffba7991489

Log:
Fixed bug #63899 (Use after scope error in zend_compile)

Bugs:
https://bugs.php.net/63899

Changed paths:
  M  NEWS
  M  Zend/zend_compile.c


Diff:
diff --git a/NEWS b/NEWS
index eff30f9..0b5c207 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 7725fb7..e395795 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));
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to