diff options
| author | timurib <timok@ya.ru> | 2018-01-07 18:10:12 +0300 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-03-25 17:49:04 +0200 |
| commit | f7f48643e779111b23b546689b9fbb4e3affe1e7 (patch) | |
| tree | 90f033a595385c272e19d6f4a3152348898f0503 /ext/standard/array.c | |
| parent | 4be28e3f8ec9c3008120eecf98915fadc54d44bd (diff) | |
| download | php-git-f7f48643e779111b23b546689b9fbb4e3affe1e7.tar.gz | |
Remove redundant warning in array_push() and array_unshift()
Cf. https://github.com/php/php-src/pull/3011.
Diffstat (limited to 'ext/standard/array.c')
| -rw-r--r-- | ext/standard/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index bd8da682bd..4bc363bd19 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -3217,7 +3217,7 @@ PHP_FUNCTION(array_push) argc; /* Number of function arguments */ - ZEND_PARSE_PARAMETERS_START(2, -1) + ZEND_PARSE_PARAMETERS_START(1, -1) Z_PARAM_ARRAY_EX(stack, 0, 1) Z_PARAM_VARIADIC('+', args, argc) ZEND_PARSE_PARAMETERS_END(); @@ -3417,7 +3417,7 @@ PHP_FUNCTION(array_unshift) zend_string *key; zval *value; - ZEND_PARSE_PARAMETERS_START(2, -1) + ZEND_PARSE_PARAMETERS_START(1, -1) Z_PARAM_ARRAY_EX(stack, 0, 1) Z_PARAM_VARIADIC('+', args, argc) ZEND_PARSE_PARAMETERS_END(); |
