mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fixed #30871
This commit is contained in:
parent
016a39195e
commit
070147105f
1 changed files with 1 additions and 1 deletions
|
@ -4367,7 +4367,7 @@ PHP_FUNCTION(array_combine)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zend_hash_num_elements(Z_ARRVAL_P(keys)) == 0 || zend_hash_num_elements(Z_ARRVAL_P(values)) == 0) {
|
if (zend_hash_num_elements(Z_ARRVAL_P(keys)) == 0 || zend_hash_num_elements(Z_ARRVAL_P(values)) == 0) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Both parameters should have number of elements at least 0");
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Both parameters should have at least 1 element");
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue