Home
last modified time | relevance | path

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

12345678910>>...13

/php-src/ext/session/tests/user_session_module/
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");
61 session_set_save_handler(): Argument #2 ($close) must be a valid callback, function "echo" not foun…
64 session_set_save_handler(): Argument #3 ($read) must be a valid callback, function "echo" not found…
[all …]
/php-src/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_map_variation16.phpt19 foreach($callbacks as $callback)
22 var_dump( array_map($callback, $arg) );
31 array_map(): Argument #1 ($callback) must be a valid callback or null, function "echo" not found or…
32 array_map(): Argument #1 ($callback) must be a valid callback or null, function "array" not found o…
33 array_map(): Argument #1 ($callback) must be a valid callback or null, function "empty" not found o…
34 array_map(): Argument #1 ($callback) must be a valid callback or null, function "eval" not found or…
35 array_map(): Argument #1 ($callback) must be a valid callback or null, function "isset" not found o…
36 array_map(): Argument #1 ($callback) must be a valid callback or null, function "list" not found or…
37 array_map(): Argument #1 ($callback) must be a valid callback or null, function "print" not found o…
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 'isset' 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 "isset" not foun…
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-src/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-src/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-src/ext/pdo_pgsql/tests/
H A Dpdopgsql_setNoticeCallback_trampoline_no_leak.phpt2 Pdo\Pgsql::setNoticeCallback() use F ZPP for trampoline callback and does not leak
19 function attach($db, $callback)
21 if (is_array($callback) && $callback[0] === null) {
22 $callback = $callback[1];
26 $db->setNoticeCallback($callback);
33 …3, // Error; but then as the old callback is kept, it will be used in the call that follows the ca…
34 null, // No callback: clear everything.
36 [ null, [ $t, 'disp' ] ], // Valid callback on an unvalid Pdo.
44 Caught TypeError: %s: Argument #1 ($callback) %s
46 Caught TypeError: %s: Argument #1 ($callback) %s
/php-src/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-src/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";
105 ini.get("assert.callback") => [f2]
120 ini.get("assert.callback") => [f2]
135 ini.get("assert.callback") => [f2]
[all …]
/php-src/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-src/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-src/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-src/ext/standard/
H A Dassert.c25 zval callback;
51 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_INI_MH()
52 zval_ptr_dtor(&ASSERTG(callback)); in PHP_INI_MH()
53 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_INI_MH()
132 ZVAL_UNDEF(&assert_globals_p->callback); in PHP_INI_END()
159 if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) { in PHP_RSHUTDOWN_FUNCTION()
160 zval_ptr_dtor(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
161 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_RSHUTDOWN_FUNCTION()
328 zval_ptr_dtor(&ASSERTG(callback)); in PHP_FUNCTION()
330 ZVAL_UNDEF(&ASSERTG(callback)); in PHP_FUNCTION()
[all …]
/php-src/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

12345678910>>...13