mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Fix add_class_name_literal (thanks laruence)
This commit is contained in:
parent
69f0deb399
commit
0a230fb4db
@ -428,6 +428,7 @@ static int zend_add_class_name_literal(zend_op_array *op_array, zend_string *nam
|
||||
ZVAL_STR(&zv, name);
|
||||
|
||||
ret = zend_add_literal(op_array, &zv TSRMLS_CC);
|
||||
name = Z_STR(zv); /* Load new name string in case it was interned */
|
||||
|
||||
lc_name = STR_ALLOC(name->len, 0);
|
||||
zend_str_tolower_copy(lc_name->val, name->val, name->len);
|
||||
|
Loading…
Reference in New Issue
Block a user