diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
| commit | 9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6 (patch) | |
| tree | 3eb7097ebb986594ae03e54142240fca4b82e5f3 /ext/standard/basic_functions.c | |
| parent | 6fe75aad6da55e7ce473109e219fdc80bf3b7a51 (diff) | |
| download | php-git-9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6.tar.gz | |
Avoid useless dereferences and separations during paramter passing.
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 79d08e4efc..8f73153bba 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4306,12 +4306,12 @@ PHP_FUNCTION(getopt) Z_PARAM_STRING(options, options_len) Z_PARAM_OPTIONAL Z_PARAM_ARRAY(p_longopts) - Z_PARAM_ZVAL_DEREF_EX(zoptind, 0, 1) + Z_PARAM_ZVAL_DEREF(zoptind) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); /* Init zoptind to 1 */ if (zoptind) { - zval_dtor(zoptind); + zval_ptr_dtor(zoptind); ZVAL_LONG(zoptind, 1); } @@ -5278,7 +5278,7 @@ PHP_FUNCTION(highlight_string) int old_error_reporting = EG(error_reporting); ZEND_PARSE_PARAMETERS_START(1, 2) - Z_PARAM_ZVAL_DEREF(expr) + Z_PARAM_ZVAL(expr) Z_PARAM_OPTIONAL Z_PARAM_BOOL(i) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); @@ -5572,7 +5572,7 @@ PHP_FUNCTION(print_r) zend_bool do_return = 0; ZEND_PARSE_PARAMETERS_START(1, 2) - Z_PARAM_ZVAL_DEREF(var) + Z_PARAM_ZVAL(var) Z_PARAM_OPTIONAL Z_PARAM_BOOL(do_return) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); @@ -5805,7 +5805,7 @@ PHP_FUNCTION(unregister_tick_function) user_tick_function_entry tick_fe; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF_EX(function, 0, 1) + Z_PARAM_ZVAL(function) ZEND_PARSE_PARAMETERS_END(); if (!BG(user_tick_functions)) { |
