summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-21 20:34:06 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-21 20:34:06 +0200
commit2141ab9be5c2b07c24534552753f8227473efa07 (patch)
treed864703c83851fed99b5f488bf9759c8e7db32b5 /Zend/zend_compile.c
parent81a2c43d5ef3dd0ed87c995f327274fb2e183687 (diff)
downloadphp-git-2141ab9be5c2b07c24534552753f8227473efa07.tar.gz
Fix bug #70106 (Inheritance by anonymous class)
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 73bb387c1e..ce4365896c 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5172,11 +5172,11 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */
}
name = zend_new_interned_string(name);
- lcname = zend_new_interned_string(lcname);
} else {
name = zend_generate_anon_class_name(decl->lex_pos);
- lcname = zend_string_copy(name); /* this normally is an interned string, except with opcache. We need a proper copy here or opcache will fail with use after free. */
+ lcname = zend_string_tolower(name);
}
+ lcname = zend_new_interned_string(lcname);
ce->type = ZEND_USER_CLASS;
ce->name = name;