mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid double IS_INTERNED() check
This commit is contained in:
parent
35f8467687
commit
bccc653185
24 changed files with 81 additions and 92 deletions
|
@ -84,8 +84,7 @@ void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_fla
|
|||
|
||||
if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) {
|
||||
zval t;
|
||||
zend_string_addref(pce->name);
|
||||
ZVAL_STR(&t, pce->name);
|
||||
ZVAL_STR_COPY(&t, pce->name);
|
||||
zend_hash_add(Z_ARRVAL_P(list), pce->name, &t);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue