Home
last modified time | relevance | path

Searched refs:callback (Results 26 – 50 of 311) sorted by relevance

12345678910>>...13

/PHP-7.4/tests/output/
H A Dbug46897.phpt5 function callback($string) {
8 return "[callback:$callback_invocations]$string\n";
11 ob_start('callback', 0, false);
20 [callback:1]Attempt to flush unerasable buffer - should fail...
21 Notice: ob_flush(): failed to flush buffer of callback (0) in %s on line %d
24 Notice: ob_flush(): failed to flush buffer of callback (0) in %s on line %d
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.4/ext/standard/tests/array/
H A Darray_reduce_variation3.phpt5 /* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
6 * Description: Iteratively reduce the array to a single value via the callback.
20 echo "\n--- Static method callback ---\n";
23 echo "\n--- Instance method callback ---\n";
31 --- Static method callback ---
34 --- Instance method callback ---
H A Darray_map_variation16.phpt5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] )
6 * Description: Applies the callback to the elements of the given arrays
43 Warning: array_map() expects parameter 1 to be a valid callback, function 'echo' not found or inval…
47 Warning: array_map() expects parameter 1 to be a valid callback, function 'array' not found or inva…
51 Warning: array_map() expects parameter 1 to be a valid callback, function 'empty' not found or inva…
55 Warning: array_map() expects parameter 1 to be a valid callback, function 'eval' not found or inval…
59 Warning: array_map() expects parameter 1 to be a valid callback, function 'exit' not found or inval…
63 Warning: array_map() expects parameter 1 to be a valid callback, function 'isset' not found or inva…
67 Warning: array_map() expects parameter 1 to be a valid callback, function 'list' not found or inval…
71 Warning: array_map() expects parameter 1 to be a valid callback, function 'print' not found or inva…
H A Darray_walk_variation9.phpt2 Test array_walk() function : usage variations - different callback functions
11 * Passing different types of callback functions to array_walk()
16 echo "*** Testing array_walk() : 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() : callback function variation ***
55 -- callback function with both parameters --
69 -- callback function with only one parameter --
79 -- callback function without parameters --
H A Darray_map_variation14.phpt2 Test array_map() function : usage variations - null value for 'callback' argument
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 null values for $callback argument and testing whether shortest
15 echo "*** Testing array_map() : null value for 'callback' argument ***\n";
26 /* calling array_map() with null callback */
47 *** Testing array_map() : null value for 'callback' argument ***
119 Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid f…
123 Warning: array_map() expects parameter 1 to be a valid callback, array must have exactly two member…
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_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 ***
/PHP-7.4/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 Dbug78502.phpt17 function tree_map($tree, $recursive_attr, closure $callback){
19 $tree[$recursive_attr] = array_map(function($c) use($recursive_attr, $callback){
20 return tree_map($c, $recursive_attr, $callback);
23 return $callback($tree);
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);
/PHP-7.4/ext/standard/
H A Dassert.c27 zval callback;
56 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_INI_MH()
57 zval_ptr_dtor(&ASSERTG(callback)); in PHP_INI_MH()
58 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_INI_MH()
90 ZVAL_UNDEF(&assert_globals_p->callback); in PHP_INI_END()
129 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_RSHUTDOWN_FUNCTION()
130 zval_ptr_dtor(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
131 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
216 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_FUNCTION()
372 zval_ptr_dtor(&ASSERTG(callback)); in PHP_FUNCTION()
[all …]
/PHP-7.4/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…
/PHP-7.4/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.4/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.4/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 64 milliseconds

12345678910>>...13