/PHP-7.3/ext/session/tests/ |
H A D | session_set_save_handler_variation1.phpt | 11 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
|
H A D | session_set_save_handler_error2.phpt | 13 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
|
H A D | session_set_save_handler_error3.phpt | 15 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
|
/PHP-7.3/Zend/tests/ |
H A D | bug63173.phpt | 2 Bug #63173: Crash when invoking invalid array callback 7 $callback = [1 => 0, 2 => 0]; 8 $callback(); 12 Fatal error: Uncaught Error: Array callback has to contain indices 0 and 1 in %s:%d
|
H A D | bug45744.phpt | 2 Bug #45744 (Case sensitive callback behaviour) 7 var_dump(array_map(array($this, 'callback'), $data)); 10 private function callback($value) { 14 return array_map(array($this, 'callback'), $value);
|
H A D | bug72101.phpt | 6 protected $callback; 7 public function __construct($callback) { 8 $this->callback = $callback; 11 return call_user_func_array($this->callback, $invocation->parameters); 38 public function callback(&$a, &$b, $c) { 73 $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo, 'callback']);
|
/PHP-7.3/ext/standard/tests/array/ |
H A D | uksort_variation2.phpt | 102 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 107 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 112 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 117 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 122 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 127 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 132 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 137 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 142 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… 167 Warning: uksort() expects parameter 2 to be a valid callback, no array or string given in %suksort_… [all …]
|
H A D | array_walk_recursive_variation9.phpt | 2 Test array_walk_recursive() function : usage variations - different callback functions 11 * Passing different types of callback functions to array_walk_recursive() 16 echo "*** Testing array_walk_recursive() : callback function variation ***\n"; 20 echo "-- callback function with both parameters --\n"; 31 echo "-- callback function with only one parameter --\n"; 41 echo "-- callback function without parameters --\n"; 54 *** Testing array_walk_recursive() : callback function variation *** 55 -- callback function with both parameters -- 69 -- callback function with only one parameter -- 79 -- callback function without parameters --
|
H A D | array_reduce_variation1.phpt | 5 /* Prototype : mixed array_reduce(array input, mixed callback [, int initial]) 6 * Description: Iteratively reduce the array to a single value via the callback. 24 echo "\n--- Testing with a callback with too few parameters ---\n"; 27 echo "\n--- Testing with a callback with too many parameters ---\n"; 39 --- Testing with a callback with too few parameters --- 42 --- Testing with a callback with too many parameters ---
|
H A D | array_intersect_uassoc_variation10.phpt | 2 Test array_intersect_uassoc() function : usage variation - Passing class/object methods to callback 5 /* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_com… 6 …tes the intersection of arrays with additional index check, compares indexes by a callback function 28 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\… 32 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --… 40 -- Testing array_intersect_uassoc() function using class with static method as callback -- 50 -- Testing array_intersect_uassoc() function using class with regular method as callback --
|
H A D | array_intersect_ukey_variation9.phpt | 2 Test array_intersect_ukey() function : usage variation - Passing class/object methods to callback 5 /* Prototype : array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compa… 6 …* Description: Computes the intersection of arrays using a callback function on the keys for compa… 28 echo "\n-- Testing array_intersect_ukey() function using class with static method as callback --\n"; 32 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --… 40 -- Testing array_intersect_ukey() function using class with static method as callback -- 54 -- Testing array_intersect_uassoc() function using class with regular method as callback --
|
H A D | array_map_variation9.phpt | 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 28 echo "-- checking binary safe array with one parameter callback function --\n"; 31 echo "-- checking binary safe array with two parameter callback function --\n"; 42 -- checking binary safe array with one parameter callback function -- 53 -- checking binary safe array with two parameter callback function --
|
H A D | array_filter_error.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 17 /* callback function 33 // with incorrect callback function 34 echo "-- Testing array_filter() function with incorrect callback --"; 47 -- Testing array_filter() function with incorrect callback -- 48 Warning: array_filter() expects parameter 2 to be a valid callback, function 'even' not found or in…
|
H A D | array_map_variation6.phpt | 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 16 function callback($a) 30 var_dump( array_map('callback', $arr1));
|
H A D | array_map_object3.phpt | 2 Test array_map() function : object functionality - class methods as callback function 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 11 * Testing array_map() for object functionality with following callback function variations: 17 echo "*** Testing array_map() : class methods as callback function ***\n"; 65 *** Testing array_map() : class methods as callback function *** 77 Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have … 90 Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have …
|
H A D | array_map_variation13.phpt | 2 Test array_map() function : usage variations - callback function with different return types 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 11 * Test array_map() by passing different callback function returning: 15 echo "*** Testing array_map() : callback with diff return value ***\n"; 58 *** Testing array_map() : callback with diff return value ***
|
H A D | array_map_variation10.phpt | 2 Test array_map() function : usage variations - anonymous callback function 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 11 * Test array_map() by passing anoymous callback function with following variations 14 echo "*** Testing array_map() : anonymous callback function ***\n"; 41 *** Testing array_map() : anonymous callback function ***
|
H A D | array_intersect_uassoc_variation9.phpt | 2 …rray_intersect_uassoc() function : usage variation - Passing non-existing function name to callback 5 /* Prototype : array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_com… 6 …tes the intersection of arrays with additional index check, compares indexes by a callback function 29 Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_fun… 32 Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_fun… 37 Warning: array_intersect_uassoc() expects parameter 3 to be a valid callback, function 'unknown_fun…
|
H A D | array_intersect_ukey_variation8.phpt | 2 … array_intersect_ukey() function : usage variation - Passing non-existing function name to callback 5 /* Prototype : array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compa… 6 …* Description: Computes the intersection of arrays using a callback function on the keys for compa… 29 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_funct… 32 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_funct… 37 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_funct…
|
H A D | array_map_variation12.phpt | 2 Test array_map() function : usage variations - built-in function as callback 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 11 * Test array_map() by passing buit-in function as callback function 58 Warning: array_map() expects parameter 1 to be a valid callback, function 'echo' not found or inval…
|
/PHP-7.3/tests/output/ |
H A D | ob_start_basic_unerasable_001.phpt | 5 function callback($string) { 8 return "[callback:$callback_invocations]$string\n"; 11 ob_start('callback', 0, false); 19 [callback:1]This call will obtain the content:
|
/PHP-7.3/ext/standard/tests/general_functions/ |
H A D | bug32647.phpt | 2 Bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP) 35 Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d 39 Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d 41 Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d 43 Warning: register_shutdown_function(): Invalid shutdown callback 'bar::foo' passed in %s on line %d 45 Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d 47 Warning: register_shutdown_function(): Invalid shutdown callback 'bar' passed in %s on line %d 51 Warning: register_shutdown_function(): Invalid shutdown callback 'bar::foobar' passed in %sbug32647…
|
/PHP-7.3/ext/filter/tests/ |
H A D | callback_closure.phpt | 2 callback function is a closure 7 $callback = function ($var) { 11 var_dump(filter_var($var, FILTER_CALLBACK, array('options'=> $callback)));
|
H A D | callback_non_modified_var.phpt | 2 callback function returns non modified value 7 function callback($var) { 11 var_dump(filter_var($var, FILTER_CALLBACK, array('options'=>'callback')));
|
/PHP-7.3/ext/spl/tests/ |
H A D | spl_iterator_apply_error_001.phpt | 2 SPL: Error: iterator_apply when the callback throws an exception 7 throw new Exception('Broken callback'); 20 Broken callback
|