Home
last modified time | relevance | path

Searched refs:callback (Results 51 – 75 of 361) sorted by relevance

12345678910>>...15

/PHP-7.1/ext/session/tests/
H A Dsession_set_save_handler_variation1.phpt11 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
H A Dsession_set_save_handler_error2.phpt13 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
H A Dsession_set_save_handler_error3.phpt15 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
H A Dsession_set_save_handler_variation4.phpt18 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
/PHP-7.1/ext/standard/tests/array/
H A Duksort_variation2.phpt102 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 Darray_walk_recursive_variation9.phpt2 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 Darray_reduce_variation1.phpt5 /* 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 Darray_intersect_uassoc_variation10.phpt2 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 Darray_intersect_ukey_variation9.phpt2 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 Darray_map_variation9.phpt5 /* 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 Darray_filter_error.phpt5 /* 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 Darray_map_variation6.phpt5 /* 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 Darray_map_object3.phpt2 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 Darray_map_variation13.phpt2 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 Darray_map_variation10.phpt2 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 Darray_intersect_uassoc_variation9.phpt2 …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 Darray_intersect_ukey_variation8.phpt2 … 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…
/PHP-7.1/Zend/tests/
H A Dbug63173.phpt2 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 Dbug45744.phpt2 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 Dbug72101.phpt6 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.1/tests/output/
H A Dob_start_basic_unerasable_001.phpt5 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.1/ext/standard/tests/general_functions/
H A Dbug32647.phpt2 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.1/ext/filter/tests/
H A Dcallback_closure.phpt2 callback function is a closure
7 $callback = function ($var) {
11 var_dump(filter_var($var, FILTER_CALLBACK, array('options'=> $callback)));
H A Dcallback_non_modified_var.phpt2 callback function returns non modified value
7 function callback($var) {
11 var_dump(filter_var($var, FILTER_CALLBACK, array('options'=>'callback')));
/PHP-7.1/ext/spl/tests/
H A Dspl_iterator_apply_error_001.phpt2 SPL: Error: iterator_apply when the callback throws an exception
7 throw new Exception('Broken callback');
20 Broken callback

Completed in 156 milliseconds

12345678910>>...15