File tree Expand file tree Collapse file tree 3 files changed +0
-7
lines changed Expand file tree Collapse file tree 3 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -4537,7 +4537,6 @@ PHP_FUNCTION(array_reduce)
4537
4537
} else {
4538
4538
zval_ptr_dtor (& args [1 ]);
4539
4539
zval_ptr_dtor (& args [0 ]);
4540
- php_error_docref (NULL , E_WARNING , "An error occurred while invoking the reduction callback" );
4541
4540
return ;
4542
4541
}
4543
4542
} ZEND_HASH_FOREACH_END ();
@@ -4621,7 +4620,6 @@ PHP_FUNCTION(array_filter)
4621
4620
if (use_type == ARRAY_FILTER_USE_BOTH ) {
4622
4621
zval_ptr_dtor (& args [1 ]);
4623
4622
}
4624
- php_error_docref (NULL , E_WARNING , "An error occurred while invoking the filter callback" );
4625
4623
return ;
4626
4624
}
4627
4625
} else if (!zend_is_true (operand )) {
@@ -4691,7 +4689,6 @@ PHP_FUNCTION(array_map)
4691
4689
ZVAL_COPY (& arg , zv );
4692
4690
4693
4691
if (zend_call_function (& fci , & fci_cache ) != SUCCESS || Z_TYPE (result ) == IS_UNDEF ) {
4694
- php_error_docref (NULL , E_WARNING , "An error occurred while invoking the map callback" );
4695
4692
zval_dtor (return_value );
4696
4693
zval_ptr_dtor (& arg );
4697
4694
RETURN_NULL ();
@@ -4779,7 +4776,6 @@ PHP_FUNCTION(array_map)
4779
4776
fci .no_separation = 0 ;
4780
4777
4781
4778
if (zend_call_function (& fci , & fci_cache ) != SUCCESS || Z_TYPE (result ) == IS_UNDEF ) {
4782
- php_error_docref (NULL , E_WARNING , "An error occurred while invoking the map callback" );
4783
4779
efree (array_pos );
4784
4780
zval_dtor (return_value );
4785
4781
for (i = 0 ; i < n_arrays ; i ++ ) {
Original file line number Diff line number Diff line change 18
18
echo "Done \n" ;
19
19
?>
20
20
--EXPECTF--
21
- Warning: array_map(): An error occurred while invoking the map callback in %s on line %d
22
21
string(17) "exception caught!"
23
22
Done
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ echo "Done\n";
23
23
?>
24
24
--EXPECTF--
25
25
26
- Warning: array_map(): An error occurred while invoking the map callback in %s on line %d
27
-
28
26
Fatal error: Uncaught exception 'Exception' in %s:%d
29
27
Stack trace:
30
28
#0 %s(%d): Element->ThrowException()
You can’t perform that action at this time.
0 commit comments