Home
last modified time | relevance | path

Searched refs:callback (Results 76 – 100 of 344) sorted by relevance

12345678910>>...14

/PHP-5.5/ext/standard/tests/array/
H A Darray_intersect_ukey_variation10.phpt2 Test array_intersect_ukey() function : usage variation - Passing class without string 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…
39 Error: 2 - array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string gi…
41 Error: 2 - array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string gi…
H A Darray_walk_recursive_variation8.phpt2 Test array_walk_recursive() function : usage variations - buit-in function as callback
11 * Passing different buit-in functionns as callback function
17 echo "*** Testing array_walk_recursive() : built-in function as callback ***\n";
33 *** Testing array_walk_recursive() : built-in function as callback ***
40 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'echo' not fou…
H A Darray_map_object2.phpt5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] )
6 * Description: Applies the callback to the elements of the given arrays
40 Warning: array_map() expects parameter 1 to be a valid callback, class 'non-existent' not found in …
44 Warning: array_map() expects parameter 1 to be a valid callback, class 'SimpleClass' does not have …
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";
37 *** Testing array_map() : anonymous callback function ***
H A Darray_diff_ukey_variation10.phpt2 Test array_diff_ukey() function : usage variation - Passing non-existing function name to callback
5 /* Prototype : array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)
30 Warning: array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' …
33 Warning: array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' …
38 Warning: array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' …
H A Darray_walk_error1.phpt12 /* Prototype : callback(mixed value, mixed key, mixed user_data)
17 function callback ($value, $key, $user_data) {
29 echo "-- Testing array_walk() function with non existent callback function --\n";
44 -- Testing array_walk() function with non existent callback function --
46 Warning: array_walk() expects parameter 2 to be a valid callback, function 'non_existent' not found…
H A Darray_walk_recursive_error1.phpt12 /* Prototype : callback(mixed value, mixed key, mixed user_data)
17 function callback ($value, $key, $user_data) {
30 echo "-- Testing array_walk_recursive() function with non existent callback function --\n";
45 -- Testing array_walk_recursive() function with non existent callback function --
47 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'non_existent'…
H A Darray_diff_uassoc_variation14.phpt2 …assoc() function : usage variation -Passing classWithoutToString (handling fatal error) to callback
5 /* Prototype : array array_diff_uassoc(array arr1, array arr2 [, array ...], callback key_comp_fun…
7 * user supplied callback function
37 Error: 2 - array_diff_uassoc() expects parameter 3 to be a valid callback, no array or string given…
H A Darray_filter_basic.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
6 * Description: Filters elements from the array via the callback.
15 $input = array(1, 2, 3, 0, -1); // 0 will be considered as FALSE and removed in default callback
H A Darray_reduce_error.phpt5 /* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
6 * Description: Iteratively reduce the array to a single value via the callback.
17 $callback = 1;
20 var_dump( array_reduce($input, $callback, $initial, $extra_arg) );
H A Darray_walk_variation4.phpt16 // callback function
17 /* Prototype : callback(mixed $value, mixed $key)
22 function callback($value, $key)
39 var_dump( array_walk( $input, "callback"));
H A Darray_filter_object.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
6 * Description: Filters elements from the array via the callback.
90 // with default callback
93 // with always_true callback function
96 // with always_false callback function
H A Darray_filter_variation3.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
6 * Description: Filters elements from the array via the callback.
14 // callback function returning always false
20 // callback function returning always true
41 // loop through each element of 'input' with default callback
H A Darray_map_object1.phpt5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] )
6 * Description: Applies the callback to the elements of the given arrays
130 Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method SimpleC…
141 Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method Simpl…
147 Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method Sim…
153 Warning: array_map() expects parameter 1 to be a valid callback, array must have exactly two member…
159 Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method ChildCl…
172 Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method FinalCl…
192 Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method Stati…
196 Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method Sta…
H A Darray_walk_recursive_variation4.phpt16 // callback function
17 /* Prototype : callback(mixed $value, mixed $key)
22 function callback($value, $key)
39 var_dump( array_walk_recursive( $input, "callback"));
/PHP-5.5/ext/session/tests/
H A Dsession_set_save_handler_basic.phpt14 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
H A Dsession_set_save_handler_closures.phpt14 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
/PHP-5.5/ext/standard/tests/assert/
H A Dassert03.phpt2 assert() - set callback using ini_set()
6 assert.callback =
31 ini_set("assert.callback", "b");
/PHP-5.5/Zend/tests/
H A Dcall_user_func_002.phpt19 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'foo' not found in %s o…
21 Warning: call_user_func() expects parameter 1 to be a valid callback, class '' not found in %s on l…
25 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
29 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
/PHP-5.5/ext/standard/tests/general_functions/
H A Dcallbacks_002.phpt12 Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found in %s o…
14 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a v…
16 Warning: call_user_func() expects parameter 1 to be a valid callback, second array member is not a …
/PHP-5.5/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-5.5/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);
H A DRecursiveCallbackFilterIteratorTest.phpt41 $callback = $test();
43 $it = new RecursiveCallbackFilterIterator($it, $callback);
52 // same test, with no reference to callback
57 unset($callback);
/PHP-5.5/ext/filter/tests/
H A D029.phpt8 /* Simple callback function */
20 /* Simple class method callback */
65 /* thrown exception in the callback */
83 Warning: filter_var(): First argument is expected to be a valid callback in %s on line %d
86 Warning: filter_var(): First argument is expected to be a valid callback in %s on line %d
89 Warning: filter_var(): First argument is expected to be a valid callback in %s on line %d
/PHP-5.5/ext/interbase/
H A Dibase_events.c58 if (event->callback) { in _php_ibase_free_event()
59 zval_dtor(event->callback); in _php_ibase_free_event()
60 FREE_ZVAL(event->callback); in _php_ibase_free_event()
61 event->callback = NULL; in _php_ibase_free_event()
237 event->callback, &return_value, 2, args TSRMLS_CC)) { in _php_ibase_callback()
238 _php_ibase_module_error("Error calling callback %s" TSRMLS_CC, Z_STRVAL_P(event->callback)); in _php_ibase_callback()
343 ALLOC_ZVAL(event->callback); in PHP_FUNCTION()
344 *event->callback = **cb_arg; in PHP_FUNCTION()
345 INIT_PZVAL(event->callback); in PHP_FUNCTION()
346 zval_copy_ctor(event->callback); in PHP_FUNCTION()

Completed in 49 milliseconds

12345678910>>...14