Browse Source

smash a segmentation fault

PEAR_1_4DEV
Andrey Hristov 23 years ago
parent
commit
40088d0bbc
  1. 2
      ext/standard/array.c

2
ext/standard/array.c

@ -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]);

Loading…
Cancel
Save