Home
last modified time | relevance | path

Searched refs:callback (Results 176 – 200 of 307) sorted by path

12345678910>>...13

/php-src/ext/standard/
H A Dbasic_functions.stub.php1532 function header_register_callback(callable $callback): bool {} argument
1536 /** @param callable|null $callback */
1614 function usort(array &$array, callable $callback): true {} argument
1616 function uasort(array &$array, callable $callback): true {} argument
1618 function uksort(array &$array, callable $callback): true {} argument
1999 function call_user_func(callable $callback, mixed ...$args): mixed {} argument
2001 function call_user_func_array(callable $callback, array $args): mixed {} argument
2003 function forward_static_call(callable $callback, mixed ...$args): mixed {} argument
2005 function forward_static_call_array(callable $callback, array $args): mixed {} argument
2071 function register_tick_function(callable $callback, mixed ...$args): bool {} argument
[all …]
H A Dbasic_functions_arginfo.h9 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
13 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, callback, "null")
107 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
143 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
329 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
340 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
449 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
454 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
463 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
553 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
[all …]
H A Dstreamsfuncs.c878 zval *callback = &context->notifier->ptr; in user_space_stream_notifier() local
894 if (FAILURE == call_user_function(NULL, NULL, callback, &retval, 6, zvs)) { in user_space_stream_notifier()
/php-src/ext/standard/tests/array/
H A Darray_diff_uassoc_basic.phpt6 * array array_diff_uassoc ( array $array1, array $array2 [, array $..., callback $key_compare_func]…
H A Darray_diff_uassoc_error.phpt48 array_diff_uassoc(): Argument #4 must be a valid callback, array callback must have exactly two mem…
49 array_diff_uassoc(): Argument #6 must be a valid callback, array callback must have exactly two mem…
52 array_diff_uassoc(): Argument #2 must be a valid callback, array callback must have exactly two mem…
H A Darray_diff_ukey_variation10.phpt2 Test array_diff_ukey() function : usage variation - Passing non-existing function name to callback
28 array_diff_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or i…
29 array_diff_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found or i…
H A Darray_diff_ukey_variation2.phpt12 //Initialize key_comp_func of type callback
H A Darray_filter_basic.phpt9 $input = array(1, 2, 3, 0, -1); // 0 will be considered as FALSE and removed in default callback
H A Darray_filter_object.phpt84 // with default callback
87 // with always_true callback function
90 // with always_false callback function
H A Darray_filter_variation10.phpt2 Test array_filter() function : usage variations - using the array keys inside 'callback'
6 * Using array keys as an argument to the 'callback'
9 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n";
21 echo "*** Testing array_filter() : usage variations - 'callback' filters based on key value ***\n";
30 echo "*** Testing array_filter() : usage variations - 'callback' expecting second argument ***\n";
55 *** Testing array_filter() : usage variations - using array keys in 'callback' ***
66 *** Testing array_filter() : usage variations - 'callback' filters based on key value ***
75 *** Testing array_filter() : usage variations - 'callback' expecting second argument ***
H A Darray_filter_variation3.phpt14 // callback function returning always true
35 // loop through each element of 'input' with default callback
H A Darray_filter_variation4.phpt2 Test array_filter() function : usage variations - Different types of 'callback' function
6 * Passing different types of callback functions to array_filter()
13 echo "*** Testing array_filter() : usage variation - different 'callback' functions***\n";
25 // callback function with parameter and without return value
38 // callback function with parameter and with return value
54 *** Testing array_filter() : usage variation - different 'callback' functions***
H A Darray_filter_variation5.phpt6 * With default callback function argument, array_filter() removes elements which are interpreted as…
15 // callback function always_false
51 // With default callback function
54 // With callback function which returns always true
57 // With callback function which returns always false
H A Darray_filter_variation6.phpt11 function callback($input)
26 // with 'callback' argument
27 var_dump( array_filter($input, 'callback') );
29 // with default 'callback' argument
H A Darray_filter_variation7.phpt2 Test array_filter() function : usage variations - anonymous callback functions
13 // anonymous callback function
14 echo "Anonymous callback function with regular parameter and statement\n";
17 // anonymous callback function with null argument
18 echo "Anonymous callback function with null argument\n";
21 // anonymous callback function with argument and null statement
22 echo "Anonymous callback function with regular argument and null statement\n";
28 *** Testing array_filter() : usage variations - Anonymous callback functions ***
29 Anonymous callback function with regular parameter and statement
40 Anonymous callback function with null argument
[all …]
H A Darray_filter_variation8.phpt7 * here testing callback functions for return values other than bool
18 echo "callback function with int return value\n";
26 echo "callback function with float return value\n";
34 echo "callback function with string return value\n";
42 echo "callback function with null return value\n";
50 echo "callback function with array as return value\n";
57 callback function with int return value
78 callback function with float return value
99 callback function with string return value
120 callback function with null return value
[all …]
H A Darray_filter_variation9.phpt2 Test array_filter() function : usage variations - built-in functions as 'callback' argument
6 * Passing built-in functions and different language constructs as 'callback' argument
9 echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***…
13 // using built-in function 'is_int' as 'callback'
16 // using built-in function 'chr' as 'callback'
19 // using language construct 'echo' as 'callback'
26 // using language construct 'exit' as 'callback'
36 *** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***
65 array_filter(): Argument #2 ($callback) must be a valid callback or null, function "echo" not found…
66 array_filter(): Argument #2 ($callback) must be a valid callback or null, function "exit" not found…
H A Darray_intersect_uassoc_basic.phpt6 * array array_intersect_uassoc ( array $array1, array $array2 [, array $..., callback $key_compare_…
H A Darray_intersect_uassoc_variation10.phpt2 Test array_intersect_uassoc() function : usage variation - Passing class/object methods to callback
23 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\…
27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
34 -- Testing array_intersect_uassoc() function using class with static method as callback --
44 -- Testing array_intersect_uassoc() function using class with regular method as callback --
H A Darray_intersect_ukey_variation8.phpt2 … array_intersect_ukey() function : usage variation - Passing non-existing function name to callback
28 array_intersect_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found…
29 array_intersect_ukey(): Argument #3 must be a valid callback, function "unknown_function" not found…
H A Darray_intersect_ukey_variation9.phpt2 Test array_intersect_ukey() function : usage variation - Passing class/object methods to callback
23 echo "\n-- Testing array_intersect_ukey() function using class with static method as callback --\n";
27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
34 -- Testing array_intersect_ukey() function using class with static method as callback --
48 -- Testing array_intersect_uassoc() function using class with regular method as callback --
H A Darray_map_001.phpt2 array_map() and exceptions in the callback
H A Darray_map_error.phpt18 echo "\n-- Testing array_map() function with less no. of arrays than callback function arguments --…
29 echo "\n-- Testing array_map() function with more no. of arrays than callback function arguments --…
42 -- Testing array_map() function with less no. of arrays than callback function arguments --
45 -- Testing array_map() function with more no. of arrays than callback function arguments --
H A Darray_map_object1.phpt135 array_map(): Argument #1 ($callback) must be a valid callback or null, cannot access private method…
139 array_map(): Argument #1 ($callback) must be a valid callback or null, cannot access protected meth…
143 array_map(): Argument #1 ($callback) must be a valid callback or null, array callback must have exa…
176 array_map(): Argument #1 ($callback) must be a valid callback or null, cannot access private method…
178 array_map(): Argument #1 ($callback) must be a valid callback or null, cannot access protected meth…
H A Darray_map_object2.phpt42 array_map(): Argument #1 ($callback) must be a valid callback or null, class "non-existent" not fou…
44 array_map(): Argument #1 ($callback) must be a valid callback or null, class SimpleClass does not h…

Completed in 73 milliseconds

12345678910>>...13