summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2013-10-28 19:51:31 +0100
committerNikita Popov <nikic@php.net>2013-10-28 19:51:31 +0100
commitd86b5f01ac7089f46add60622260d6926c3977b8 (patch)
treeb0f1dd6e7cfd1f92785d945cba122b4080cefd6d /Zend/zend_builtin_functions.c
parentf626db130cd22e586c4837e4b4b02bca5133d0dc (diff)
downloadphp-git-d86b5f01ac7089f46add60622260d6926c3977b8.tar.gz
Avoid copy in func_get_arg()
Complements dmitry's change to func_get_args()
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 2d2a865c10..55e5f34e83 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -435,9 +435,7 @@ ZEND_FUNCTION(func_get_arg)
}
arg = *(p-(arg_count-requested_offset));
- *return_value = *arg;
- zval_copy_ctor(return_value);
- INIT_PZVAL(return_value);
+ RETURN_ZVAL_FAST(arg);
}
/* }}} */