Avoid double IS_INTERNED() check

This commit is contained in:
Dmitry Stogov 2014-09-19 17:32:50 +04:00
parent 35f8467687
commit bccc653185
24 changed files with 81 additions and 92 deletions

View file

@ -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);
}
}