Home
last modified time | relevance | path

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

12345678910>>...12

/php-src/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_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_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_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_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 --
/php-src/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-src/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 …
/php-src/Zend/
H A Dzend_observer.c320 callback(op_array, name); in _zend_observer_function_declared_notify()
338 callback(ce, name); in _zend_observer_class_linked_notify()
352 callback(type, error_filename, error_lineno, message); in _zend_observer_error_notify()
374 zend_observer_fiber_init_handler callback; in zend_observer_fiber_init_notify() local
379 callback = *(zend_observer_fiber_init_handler *) element->data; in zend_observer_fiber_init_notify()
380 callback(initializing); in zend_observer_fiber_init_notify()
387 zend_observer_fiber_switch_handler callback; in zend_observer_fiber_switch_notify() local
394 callback = *(zend_observer_fiber_switch_handler *) element->data; in zend_observer_fiber_switch_notify()
395 callback(from, to); in zend_observer_fiber_switch_notify()
405 zend_observer_fiber_destroy_handler callback; in zend_observer_fiber_destroy_notify() local
[all …]
/php-src/ext/sqlite3/tests/
H A Dsqlite3_trampoline_createfunction.phpt2 SQLite3::createFunction trampoline callback
17 $callback = [$o, 'strtoupper'];
18 var_dump($db->createfunction('strtoupper', $callback));
H A Dsqlite3_trampoline_setauthorizer.phpt2 SQLite3 user authorizer trampoline callback
19 $callback = [$o, 'authorizer'];
24 $db->setAuthorizer($callback);
/php-src/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-src/ext/pdo/tests/
H A Dpdo_011.phpt55 function callback($id,$val='N/A')
64 var_dump($select1->fetchAll(PDO::FETCH_FUNC|PDO::FETCH_GROUP, 'callback'));
67 var_dump($select2->fetchAll(PDO::FETCH_FUNC, 'callback'));
93 callback(1,N/A)
94 callback(2,N/A)
95 callback(3,N/A)
96 callback(4,N/A)
125 callback(1,A)
126 callback(2,B)
127 callback(3,C)
[all …]
/php-src/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-src/ext/zend_test/
H A Dfiber.stub.php10 public function __construct(callable $callback) {} argument
16 public function pipeTo(callable $callback): _ZendTestFiber {} argument
/php-src/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-src/ext/xml/tests/
H A Dset_handler_trampoline.phpt2 Test XMLParser generic handlers as trampoline callback
16 $callback = [$o, 'pi_handler'];
25 xml_set_processing_instruction_handler($parser, $callback);
/php-src/ext/pdo_sqlite/tests/subclasses/
H A Dpdo_sqlite_createaggregate_002.phpt2 PDO_sqlite: Testing invalid callback for createAggregate()
24 PdoSqlite::createAggregate(): Argument #2 ($step) must be a valid callback, function "a" not found …
25 PdoSqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, function "" not fou…
/php-src/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'));

Completed in 97 milliseconds

12345678910>>...12