Home
last modified time | relevance | path

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

1234567891011

/PHP-8.2/ext/standard/tests/array/
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_reduce_variation1.phpt18 echo "\n--- Testing with a callback with too few parameters ---\n";
21 echo "\n--- Testing with a callback with too many parameters ---\n";
32 --- Testing with a callback with too few parameters ---
35 --- Testing with a callback with too many parameters ---
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_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_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_walk_error2.phpt2 Test array_walk() function : error conditions - callback parameters
6 * Testing array_walk() by passing more number of parameters to callback function
17 echo "*** Testing array_walk() : error conditions - callback parameters ***\n";
43 echo "-- Testing array_walk() function with too many callback parameters --\n";
53 *** Testing array_walk() : error conditions - callback parameters ***
58 -- Testing array_walk() function with too many callback parameters --
H A Darray_walk_recursive_error2.phpt2 Test array_walk_recursive() function : error conditions - callback parameters
6 * Testing array_walk_recursive() by passing more number of parameters to callback function
17 echo "*** Testing array_walk_recursive() : error conditions - callback parameters ***\n";
43 echo "-- Testing array_walk_recursive() function with too many callback parameters --\n";
53 *** Testing array_walk_recursive() : error conditions - callback parameters ***
58 -- Testing array_walk_recursive() function with too many callback parameters --
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_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_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_variation12.phpt2 Test array_map() function : usage variations - built-in function as callback
6 * Test array_map() by passing buit-in function as callback function
47 array_map(): Argument #1 ($callback) must be a valid callback or null, function "echo" not found or…
H A Darray_map_variation9.phpt23 echo "-- checking binary safe array with one parameter callback function --\n";
26 echo "-- checking binary safe array with two parameter callback function --\n";
37 -- checking binary safe array with one parameter callback function --
48 -- checking binary safe array with two parameter callback function --
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…
/PHP-8.2/tests/classes/
H A Dautoload_012.phpt2 Ensure callback methods in unknown classes trigger autoload.
17 call_user_func(): Argument #1 ($callback) must be a valid callback, class "UndefC" not found
/PHP-8.2/Zend/tests/
H A Dcall_user_func_001.phpt40 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access private method te…
41 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access protected method …
H A Dbug45186_2.phpt59 call_user_func(): Argument #1 ($callback) must be a valid callback, class bar does not have a metho…
60 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
/PHP-8.2/Zend/
H A Dzend_observer.c313 callback(op_array, name); in _zend_observer_function_declared_notify()
331 callback(ce, name); in _zend_observer_class_linked_notify()
345 callback(type, error_filename, error_lineno, message); in _zend_observer_error_notify()
367 zend_observer_fiber_init_handler callback; in zend_observer_fiber_init_notify() local
372 callback = *(zend_observer_fiber_init_handler *) element->data; in zend_observer_fiber_init_notify()
373 callback(initializing); in zend_observer_fiber_init_notify()
380 zend_observer_fiber_switch_handler callback; in zend_observer_fiber_switch_notify() local
387 callback = *(zend_observer_fiber_switch_handler *) element->data; in zend_observer_fiber_switch_notify()
388 callback(from, to); in zend_observer_fiber_switch_notify()
398 zend_observer_fiber_destroy_handler callback; in zend_observer_fiber_destroy_notify() local
[all …]
/PHP-8.2/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_createaggregate_002.phpt2 PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
23 PDO::sqliteCreateAggregate(): Argument #2 ($step) must be a valid callback, function "a" not found …
24 PDO::sqliteCreateAggregate(): Argument #3 ($finalize) must be a valid callback, function "" not fou…
/PHP-8.2/ext/spl/
H A Dphp_spl.stub.php34 function spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = fals… argument
36 function spl_autoload_unregister(callable $callback): bool {} argument
49 function iterator_apply(Traversable $iterator, callable $callback, ?array $args = null): int {} argument
/PHP-8.2/ext/standard/tests/assert/
H A Dassert03.phpt2 assert() - set callback using ini_set()
6 assert.callback =
30 ini_set("assert.callback", "b");
H A Dassert_basic4.phpt7 assert.callback = f1
22 echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
32 Initial values: ini.get("assert.callback") => [f1]
/PHP-8.2/ext/zend_test/
H A Dfiber.stub.php10 public function __construct(callable $callback) {} argument
16 public function pipeTo(callable $callback): _ZendTestFiber {} argument
/PHP-8.2/ext/pdo_sqlite/
H A Dsqlite_driver.stub.php11 …public function sqliteCreateFunction(string $name, callable $callback, int $numArgs = -1, int $fla… argument
17 public function sqliteCreateCollation(string $name, callable $callback): bool {} argument
/PHP-8.2/ext/pcre/tests/
H A Dbug37911.phpt6 function callback($match)
12 var_dump(preg_replace_callback('|(?P<name>blub)|', 'callback', 'bla blub blah'));
17 var_dump(preg_replace_callback('|(?P<1>blub)|', 'callback', 'bla blub blah'));
/PHP-8.2/ext/spl/tests/
H A DCallbackFilterIteratorTest.phpt38 $callback = $test();
40 $it = new CallbackFilterIterator($it, $callback);
48 // same test, with no reference to callback
52 unset($callback);

Completed in 35 milliseconds

1234567891011