diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-01-20 08:55:36 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-01-20 08:55:36 +0300 |
commit | 8dc3c283b892e17f83a5f98310a6955fcbda6fb6 (patch) | |
tree | 0b4646a083f74aa10d9f67936f0aa824b0ed449e | |
parent | 6f67d5ad6e81d2763af320240ed88db3a981fdca (diff) | |
download | php-git-8dc3c283b892e17f83a5f98310a6955fcbda6fb6.tar.gz |
cleanup
-rw-r--r-- | Zend/zend_builtin_functions.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 161bfb2812..6b73bf344d 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -475,21 +475,13 @@ ZEND_FUNCTION(func_get_args) ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) { i = 0; p = ZEND_CALL_ARG(ex, 1); - if (ZEND_CALL_NUM_ARGS(ex) > first_extra_arg) { + if (arg_count > first_extra_arg) { while (i < first_extra_arg) { q = p; ZVAL_DEREF(q); if (Z_OPT_REFCOUNTED_P(q)) Z_ADDREF_P(q); ZEND_HASH_FILL_ADD(q); -// q->h = i; -// q->key = NULL; -// if (!Z_ISREF_P(p)) { -// ZVAL_COPY(&q->val, p); -// } else { -// ZVAL_COPY(&q->val, Z_REFVAL_P(p)); -// } p++; -// q++; i++; } p = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T); @@ -499,15 +491,7 @@ ZEND_FUNCTION(func_get_args) ZVAL_DEREF(q); if (Z_OPT_REFCOUNTED_P(q)) Z_ADDREF_P(q); ZEND_HASH_FILL_ADD(q); -// q->h = i; -// q->key = NULL; -// if (!Z_ISREF_P(p)) { -// ZVAL_COPY(&q->val, p); -// } else { -// ZVAL_COPY(&q->val, Z_REFVAL_P(p)); -// } p++; -// q++; i++; } } ZEND_HASH_FILL_END(); |