Home
last modified time | relevance | path

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

1234567891011

/PHP-8.2/ext/session/tests/
H A Dsession_set_save_handler_error4.phpt14 function callback() { return true; }
17 … session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback");
23 session_set_save_handler("callback", "echo", "callback", "callback", "callback", "callback");
29 session_set_save_handler("callback", "callback", "echo", "callback", "callback", "callback");
35 session_set_save_handler("callback", "callback", "callback", "echo", "callback", "callback");
41 session_set_save_handler("callback", "callback", "callback", "callback", "echo", "callback");
47 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "echo");
52 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback");
59 session_set_save_handler(): Argument #2 ($close) must be a valid callback, function "echo" not foun…
60 session_set_save_handler(): Argument #3 ($read) must be a valid callback, function "echo" not found…
[all …]
H A Dsession_set_save_handler_error.phpt99 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "0" not found or…
102 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
126 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
129 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
132 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
135 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
138 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "1" not found or…
141 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
144 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
147 session_set_save_handler(): Argument #1 ($open) must be a valid callback, function "" not found or …
[all …]
/PHP-8.2/ext/standard/tests/array/
H A Darray_map_variation17.phpt79 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
82 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
85 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
88 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
91 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
94 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
97 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
100 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
103 array_map(): Argument #1 ($callback) must be a valid callback or null, no array or string given
106 array_map(): Argument #1 ($callback) must be a valid callback or null, 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 ***
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_map_variation16.phpt41 array_map(): Argument #1 ($callback) must be a valid callback or null, function "echo" not found or…
43 array_map(): Argument #1 ($callback) must be a valid callback or null, function "array" not found o…
45 array_map(): Argument #1 ($callback) must be a valid callback or null, function "empty" not found o…
47 array_map(): Argument #1 ($callback) must be a valid callback or null, function "eval" not found or…
49 array_map(): Argument #1 ($callback) must be a valid callback or null, function "exit" not found or…
51 array_map(): Argument #1 ($callback) must be a valid callback or null, function "isset" not found o…
53 array_map(): Argument #1 ($callback) must be a valid callback or null, function "list" not found or…
55 array_map(): Argument #1 ($callback) must be a valid callback or null, function "print" not found o…
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 or null, function "non_existent" not …
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…
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);
/PHP-8.2/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.2/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";
64 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
72 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
90 ini.get("assert.callback") => [f2]
97 ini.get("assert.callback") => [f2]
104 ini.get("assert.callback") => [f2]
[all …]
/PHP-8.2/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.2/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.2/ext/spl/tests/
H A Dspl_autoload_007.phpt55 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad…
58 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr…
64 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static metho…
72 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad…
80 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr…
96 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static metho…
105 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad…
114 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr…
/PHP-8.2/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.2/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()
118 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_RSHUTDOWN_FUNCTION()
119 zval_ptr_dtor(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
120 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
285 zval_ptr_dtor(&ASSERTG(callback)); in PHP_FUNCTION()
287 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_FUNCTION()
[all …]
/PHP-8.2/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.2/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 27 milliseconds

1234567891011