}
#endif
+ /* Check whether anyone is hogging the trampoline. */
+ ZEND_ASSERT(EG(trampoline).common.function_name == NULL || CG(unclean_shutdown));
+
EG(ht_iterators_used) = 0;
zend_shutdown_fpu();
int ret;
if (Z_TYPE(arrays[0]) != IS_ARRAY) {
+ zend_release_fcall_info_cache(&fci_cache);
zend_argument_type_error(2, "must be of type array, %s given", zend_zval_type_name(&arrays[0]));
RETURN_THROWS();
}
$cb = [new Test, $name];
array_map($cb, []);
array_map($cb, [], []);
+try {
+ array_map($cb, null);
+} catch (Error $e) {
+ echo $e->getMessage(), "\n";
+}
array_filter([], $cb);
array_reduce([], $cb);
?>
===DONE===
--EXPECT--
+array_map(): Argument #2 ($array1) must be of type array, null given
===DONE===