diff options
| author | Nikita Popov <nikic@php.net> | 2013-10-28 19:51:31 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2013-10-28 19:51:31 +0100 |
| commit | d86b5f01ac7089f46add60622260d6926c3977b8 (patch) | |
| tree | b0f1dd6e7cfd1f92785d945cba122b4080cefd6d /Zend/zend_builtin_functions.c | |
| parent | f626db130cd22e586c4837e4b4b02bca5133d0dc (diff) | |
| download | php-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.c | 4 |
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); } /* }}} */ |
