summaryrefslogtreecommitdiff
path: root/ext/spl/spl_functions.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-16 22:27:31 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-16 22:27:31 +0800
commitad1838d2483c3a44c77a2d483a5cf27ffeb63e45 (patch)
tree799c3bea37f66f2f994610c1fff082a7208fc524 /ext/spl/spl_functions.c
parentf0168baecfb27e104e46fe914e5b5b6507ba8214 (diff)
downloadphp-git-ad1838d2483c3a44c77a2d483a5cf27ffeb63e45.tar.gz
Use better data structures (incomplete)
Diffstat (limited to 'ext/spl/spl_functions.c')
-rw-r--r--ext/spl/spl_functions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/spl/spl_functions.c b/ext/spl/spl_functions.c
index 6b5a612637..e3cf1323c3 100644
--- a/ext/spl/spl_functions.c
+++ b/ext/spl/spl_functions.c
@@ -77,16 +77,16 @@ void spl_register_property( zend_class_entry * class_entry, char *prop_name, int
/* }}} */
/* {{{ spl_add_class_name */
-void spl_add_class_name(zval *list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC)
+void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags TSRMLS_DC)
{
if (!allow || (allow > 0 && pce->ce_flags & ce_flags) || (allow < 0 && !(pce->ce_flags & ce_flags))) {
zval *tmp;
if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) {
- MAKE_STD_ZVAL(tmp);
+ zval t;
STR_ADDREF(pce->name);
- ZVAL_STR(tmp, pce->name);
- zend_hash_add(Z_ARRVAL_P(list), pce->name, tmp);
+ ZVAL_STR(&t, pce->name);
+ zend_hash_add(Z_ARRVAL_P(list), pce->name, &t);
}
}
}