php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76337
Patch bug76337.patch revision 2018-05-13 23:47 UTC by xKhorasan+php at gmail dot com

Patch bug76337.patch for Reproducible crash Bug #76337

Patch version 2018-05-13 23:47 UTC

Return to Bug #76337 | Download this patch
Patch Revisions:

Developer: xKhorasan+php@gmail.com

diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 843d1ecdf1..9c977f0d3a 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2785,6 +2785,7 @@ ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zen
 
 	zend_assert_valid_class_name(lcname);
 
+	lcname = zend_new_interned_string(lcname);
 	ce = zend_hash_add_ptr(CG(class_table), lcname, ce);
 	zend_string_release(lcname);
 	if (ce) {
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Feb 26 08:01:26 2020 UTC