mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
compact() doesnt throw "wrong param count"
This commit is contained in:
@@ -1567,6 +1567,9 @@ PHP_FUNCTION(compact)
|
||||
zval ***args; /* function arguments array */
|
||||
int i;
|
||||
|
||||
if (ZEND_NUM_ARGS() < 1) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
args = (zval ***)safe_emalloc(ZEND_NUM_ARGS(), sizeof(zval **), 0);
|
||||
|
||||
if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) {
|
||||
|
||||
Reference in New Issue
Block a user