summaryrefslogtreecommitdiff
path: root/ext/spl/spl_engine.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-11 19:30:42 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-11 19:33:18 +0800
commit3f4c877bf7cff179b719364de1c6fd5ff8dd105f (patch)
treea13dcc4219b778ec9997380243ed0ea3075bb3c7 /ext/spl/spl_engine.c
parent00244baba8f4e90861075ac9b73adea46bb21aaf (diff)
downloadphp-git-3f4c877bf7cff179b719364de1c6fd5ff8dd105f.tar.gz
Use better data structures (incomplete)
Diffstat (limited to 'ext/spl/spl_engine.c')
-rw-r--r--ext/spl/spl_engine.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/spl/spl_engine.c b/ext/spl/spl_engine.c
index c07ce6846f..1787f28e1e 100644
--- a/ext/spl/spl_engine.c
+++ b/ext/spl/spl_engine.c
@@ -32,14 +32,11 @@
#include "spl_array.h"
/* {{{ spl_instantiate */
-PHPAPI void spl_instantiate(zend_class_entry *pce, zval **object, int alloc TSRMLS_DC)
+PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC)
{
- if (alloc) {
- ALLOC_ZVAL(*object);
- }
- object_init_ex(*object, pce);
- Z_SET_REFCOUNT_PP(object, 1);
- Z_SET_ISREF_PP(object); /* check if this can be hold always */
+ object_init_ex(object, pce);
+ Z_SET_REFCOUNT_P(object, 1);
+ Z_SET_ISREF_P(object); /* check if this can be hold always */
}
/* }}} */