mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
smash a segmentation fault
This commit is contained in:
@@ -3014,7 +3014,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
|
||||
for (i = 0; i < arr_argc; i++) {
|
||||
if (Z_TYPE_PP(args[i]) != IS_ARRAY) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1);
|
||||
argc = i; /* only free up to i-1 */
|
||||
arr_argc = i; /* only free up to i-1 */
|
||||
goto out;
|
||||
}
|
||||
hash = HASH_OF(*args[i]);
|
||||
|
||||
Reference in New Issue
Block a user