Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 245) sorted by relevance

12345678910

/PHP-8.0/ext/session/tests/
H A Dsession_set_save_handler_error4.phpt12 function callback() { return true; }
15 … session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback");
21 session_set_save_handler("callback", "echo", "callback", "callback", "callback", "callback");
27 session_set_save_handler("callback", "callback", "echo", "callback", "callback", "callback");
33 session_set_save_handler("callback", "callback", "callback", "echo", "callback", "callback");
39 session_set_save_handler("callback", "callback", "callback", "callback", "echo", "callback");
45 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "echo");
50 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback");
57 session_set_save_handler(): Argument #2 ($close) must be a valid callback, function "echo" not foun…
58 session_set_save_handler(): Argument #3 ($read) must be a valid callback, function "echo" not found…
[all …]
H A Dsession_set_save_handler_error.phpt97 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "0" not found or…
100 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
124 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
127 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
130 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
133 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
136 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
139 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
142 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
145 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
[all …]
/PHP-8.0/ext/standard/tests/array/
H A Darray_map_variation17.phpt79 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
82 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
85 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
88 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
91 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
94 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
97 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
100 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
103 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
106 array_map(): Argument #1 ($callback) must be a valid callback, no array or string given
[all …]
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_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 ***
67 array_filter(): Argument #2 ($callback) must be a valid callback, function "echo" not found or inva…
68 array_filter(): Argument #2 ($callback) must be a valid callback, function "exit" not found or inva…
H A Darray_map_variation16.phpt41 array_map(): Argument #1 ($callback) must be a valid callback, function "echo" not found or invalid…
43 array_map(): Argument #1 ($callback) must be a valid callback, function "array" not found or invali…
45 array_map(): Argument #1 ($callback) must be a valid callback, function "empty" not found or invali…
47 array_map(): Argument #1 ($callback) must be a valid callback, function "eval" not found or invalid…
49 array_map(): Argument #1 ($callback) must be a valid callback, function "exit" not found or invalid…
51 array_map(): Argument #1 ($callback) must be a valid callback, function "isset" not found or invali…
53 array_map(): Argument #1 ($callback) must be a valid callback, function "list" not found or invalid…
55 array_map(): Argument #1 ($callback) must be a valid callback, function "print" not found or invali…
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_map_variation15.phpt2 Test array_map() function : usage variations - non existent 'callback' function
6 * Test array_map() by passing non existent function for $callback argument
9 echo "*** Testing array_map() : non existent 'callback' function ***\n";
25 *** Testing array_map() : non existent 'callback' function ***
26 array_map(): Argument #1 ($callback) must be a valid callback, function "non_existent" not found or…
H A Darray_map_variation19.phpt2 Test array_map() function : usage variations - callback pass semantics
6 * Test array_map() with a pass-by-value callback forced to behave as a pass-by-reference function.
12 function callback($a) {
16 array_map('callback', $arr1);
20 array_map("callback", $arr2);
H A Darray_map_variation7.phpt11 * 5) one more array than callback function arguments
16 function callback($a, $b)
22 var_dump( array_map('callback', array(1, 2, 3), array()) );
23 var_dump( array_map('callback', array(), array('a', 'b', 'c')) );
24 var_dump( array_map('callback', array(1, 2, 3), array('a', 'b')) );
25 var_dump( array_map('callback', array(012, 0x2F, 0X1A), array(2.3, 12.4e2)) );
26 var_dump( array_map('callback', array(), array(1, 2, 3), array('a', 'b')) ); // passing more no. o…
/PHP-8.0/Zend/tests/
H A Dindirect_call_string_002.phpt15 $callback();
19 $callback();
24 $callback();
32 $callback();
40 $callback();
46 $callback = '::';
48 $callback();
56 $callback();
64 $callback();
70 $callback = ':';
[all …]
H A Dbug68475.phpt19 $callback = 'TestClass::staticMethod';
20 $callback();
23 $callback = 'testclass::staticmethod';
24 $callback();
27 $callback = 'TestClass::staticMethodWithArgs';
30 $callback($args[0], $args[1], $args[2]);
33 $callback(...$args);
36 $callback = 'TestClass::undefinedMethod';
38 $callback();
44 $callback = 'UndefinedClass::testMethod';
[all …]
H A Dindirect_call_string_001.phpt24 $callback = 'TestNamespace\TestClass::staticMethod';
25 $callback();
28 $callback = 'testnamespace\testclass::staticmethod';
29 $callback();
32 $callback = 'TestNamespace\TestClass::staticMethodWithArgs';
35 $callback($args[0], $args[1], $args[2]);
38 $callback(...$args);
H A Dcall_user_func_002.phpt34 call_user_func(): Argument #1 ($callback) must be a valid callback, class "foo" not found
35 call_user_func(): Argument #1 ($callback) must be a valid callback, class "" not found
38 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
41 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
/PHP-8.0/tests/output/
H A Dob_start_basic_002.phpt2 ob_start(): Check behaviour with various callback return values.
25 // Use each of the above functions as an output buffering callback:
29 foreach ($callbacks as $callback) {
30 echo "--> Use callback '$callback':\n";
31 ob_start($callback);
39 --> Use callback 'return_empty_string':
42 --> Use callback 'return_false':
45 --> Use callback 'return_null':
48 --> Use callback 'return_string':
51 --> Use callback 'return_zero':
H A Dob_start_basic_unerasable_003.phpt5 function callback($string) {
8 return "[callback:$callback_invocations]$string\n";
11 ob_start('callback', 0, false);
18 [callback:1]This call will obtain the content, but will not clean the buffer.
19 Notice: ob_get_clean(): Failed to discard buffer of callback (0) in %s on line 11
21 Notice: ob_get_clean(): Failed to delete buffer of callback (0) in %s on line 11
H A Dob_start_basic_unerasable_004.phpt5 function callback($string) {
8 return "[callback:$callback_invocations]$string\n";
11 ob_start('callback', 0, false);
18 [callback:1]This call will obtain the content, but will not flush the buffer.
19 Notice: ob_get_flush(): Failed to send buffer of callback (0) in %s on line 11
21 Notice: ob_get_flush(): Failed to delete buffer of callback (0) in %s on line 11
/PHP-8.0/ext/standard/tests/assert/
H A Dassert_variation.phpt6 assert.callback = f1
31 echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
38 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
45 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
53 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
60 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
68 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
86 ini.get("assert.callback") => [f2]
93 ini.get("assert.callback") => [f2]
100 ini.get("assert.callback") => [f2]
[all …]
/PHP-8.0/ext/standard/tests/general_functions/
H A Dbug32647.phpt2 Bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP)
76 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member …
79 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member …
80 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member …
81 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class bar does not …
82 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member …
83 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, function "bar" not …
84 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, non-static method b…
85 register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class bar does not …
H A Dcallbacks_002.phpt24 call_user_func(): Argument #1 ($callback) must be a valid callback, class "Foo" not found
25 call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a val…
26 call_user_func(): Argument #1 ($callback) must be a valid callback, second array member is not a va…
/PHP-8.0/ext/spl/tests/
H A Dspl_autoload_007.phpt55 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does …
58 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected …
64 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAuto…
72 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does …
80 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected …
96 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAuto…
105 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does …
114 spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected …
/PHP-8.0/ext/readline/tests/
H A Dreadline_completion_function_001.phpt17 foreach ($data as $callback) {
19 var_dump(readline_completion_function($callback));
29 readline_completion_function(): Argument #1 ($callback) must be a valid callback, no array or strin…
30 readline_completion_function(): Argument #1 ($callback) must be a valid callback, no array or strin…
/PHP-8.0/ext/opcache/tests/opt/
H A Dblock_pass_001.phpt12 protected function normalizeChannelHandlerToCallable($callback)
14 return is_callable($callback) ? $callback : function (...$args) use ($callback) {
16 ->make($callback)
/PHP-8.0/ext/standard/
H A Dassert.c25 zval callback;
52 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_INI_MH()
53 zval_ptr_dtor(&ASSERTG(callback)); in PHP_INI_MH()
54 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_INI_MH()
85 ZVAL_UNDEF(&assert_globals_p->callback); in PHP_INI_END()
123 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_RSHUTDOWN_FUNCTION()
124 zval_ptr_dtor(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
125 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
280 zval_ptr_dtor(&ASSERTG(callback)); in PHP_FUNCTION()
282 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_FUNCTION()
[all …]
/PHP-8.0/ext/pcre/tests/
H A Dpreg_replace_callback3.phpt26 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given
27 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given
28 preg_replace_callback(): Argument #2 ($callback) must be a valid callback, no array or string given

Completed in 123 milliseconds

12345678910