/PHP-8.3/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_error4.phpt | 12 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 …]
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | array_map_variation17.phpt | 79 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 D | array_filter_variation7.phpt | 2 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 D | array_filter_variation9.phpt | 2 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 D | array_map_variation16.phpt | 41 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 D | array_filter_variation8.phpt | 7 * 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 D | array_map_variation15.phpt | 2 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 D | array_map_variation7.phpt | 11 * 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 D | array_map_variation19.phpt | 2 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.3/Zend/tests/ |
H A D | indirect_call_string_002.phpt | 15 $callback(); 19 $callback(); 24 $callback(); 32 $callback(); 40 $callback(); 46 $callback = '::'; 48 $callback(); 56 $callback(); 64 $callback(); 70 $callback = ':'; [all …]
|
H A D | bug68475.phpt | 19 $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 D | indirect_call_string_001.phpt | 24 $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 D | call_user_func_002.phpt | 34 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.3/tests/output/ |
H A D | ob_start_basic_002.phpt | 2 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 D | ob_start_basic_unerasable_003.phpt | 5 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 D | ob_start_basic_unerasable_004.phpt | 5 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
|
H A D | ob_start_basic_unerasable_005.phpt | 5 function callback($string) { 8 return "[callback:$callback_invocations]$string\n"; 11 ob_start('callback', 0, false); 19 [callback:1]Attempt to flush unerasable buffer - should fail... 20 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line 11 23 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line 11
|
/PHP-8.3/ext/standard/tests/general_functions/ |
H A D | bug32647.phpt | 2 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 D | callbacks_002.phpt | 24 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.3/ext/standard/tests/assert/ |
H A D | assert_variation.phpt | 6 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-8.3/ext/spl/tests/ |
H A D | spl_autoload_007.phpt | 55 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.3/ext/readline/tests/ |
H A D | readline_completion_function_001.phpt | 17 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.3/ext/opcache/tests/opt/ |
H A D | block_pass_001.phpt | 12 protected function normalizeChannelHandlerToCallable($callback) 14 return is_callable($callback) ? $callback : function (...$args) use ($callback) { 16 ->make($callback)
|
/PHP-8.3/ext/standard/ |
H A D | assert.c | 25 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-8.3/ext/pcre/tests/ |
H A D | preg_replace_callback3.phpt | 26 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
|