com php-src: Fix interning bug: Zend/zend_compile.c

From: Date: Thu, 24 Jul 2014 19:07:37 +0000
Subject: com php-src: Fix interning bug: Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-80924@lists.php.net to get a copy of this message
Commit: c777427c0851bbfeb2b5c842265779233a24fd96 Author: Nikita Popov <nikic@php.net> Thu, 24 Jul 2014 21:07:37 +0200 Parents: 689891c2b291ca56fb72667b6e40640bc0702588 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c777427c0851bbfeb2b5c842265779233a24fd96 Log: Fix interning bug Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index d68aa17..d402ff7 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6153,8 +6153,11 @@ void zend_compile_class_decl(zend_ast *ast TSRMLS_DC) { efree(import_name_lc); } + name = zend_new_interned_string(name TSRMLS_CC); + lcname = zend_new_interned_string(lcname TSRMLS_CC); + ce->type = ZEND_USER_CLASS; - ce->name = zend_new_interned_string(name TSRMLS_CC); + ce->name = name; zend_initialize_class_data(ce, 1 TSRMLS_CC); ce->ce_flags |= decl->flags;

« previous php.cvs (#80924) next »