diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-09-20 02:25:56 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-09-20 02:25:56 +0300 |
commit | 44e0b79ac64b344fc1335c126e548f00d8308602 (patch) | |
tree | bcfc582b0d7a46b9798498fcb163079c7b9b8750 /Zend/zend_API.c | |
parent | c1dc10aaa5249ba54b6fa5bc043a80bd96f1c9e7 (diff) | |
download | php-git-44e0b79ac64b344fc1335c126e548f00d8308602.tar.gz |
Refactored array creation API. array_init() and array_init_size() are converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 7c82d6ec25..45999da33c 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1084,15 +1084,6 @@ ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args, zval *this } /* }}} */ -/* Argument parsing API -- andrei */ -ZEND_API int _array_init(zval *arg, uint32_t size ZEND_FILE_LINE_DC) /* {{{ */ -{ - ZVAL_NEW_ARR(arg); - _zend_hash_init(Z_ARRVAL_P(arg), size, ZVAL_PTR_DTOR, 0 ZEND_FILE_LINE_RELAY_CC); - return SUCCESS; -} -/* }}} */ - /* This function should be called after the constructor has been called * because it may call __set from the uninitialized object otherwise. */ ZEND_API void zend_merge_properties(zval *obj, HashTable *properties) /* {{{ */ |