/PHP-7.4/ext/session/tests/ |
H A D | session_set_save_handler_error4.phpt | 11 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca… 18 function callback() { return true; } 20 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback"); 21 session_set_save_handler("callback", "echo", "callback", "callback", "callback", "callback"); 22 session_set_save_handler("callback", "callback", "echo", "callback", "callback", "callback"); 23 session_set_save_handler("callback", "callback", "callback", "echo", "callback", "callback"); 24 session_set_save_handler("callback", "callback", "callback", "callback", "echo", "callback"); 25 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "echo"); 26 session_set_save_handler("callback", "callback", "callback", "callback", "callback", "callback"); 33 Warning: session_set_save_handler(): Argument 2 is not a valid callback in %s on line %d [all …]
|
H A D | session_set_save_handler_error.phpt | 11 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca… 100 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 105 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 110 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 115 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 120 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 125 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 130 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 135 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d 140 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d [all …]
|
H A D | session_set_save_handler_variation2.phpt | 11 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
|
H A D | session_set_save_handler_variation3.phpt | 13 …bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, ca…
|
/PHP-7.4/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);
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_filter_variation7.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 18 // anonymous callback function 22 // anonymous callback function with reference 23 echo "Anonymous callback function with reference parameter\n"; 26 // anonymous callback function with null argument 27 echo "Anonymous callback funciton with null argument\n"; 30 // anonymous callback function with argument and null statement 38 Anonymous callback function with regular parameter and statement 47 Anonymous callback function with reference parameter [all …]
|
H A D | array_filter_variation8.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 19 // callback functions 25 echo "callback function with int return value\n"; 33 echo "callback function with float return value\n"; 41 echo "callback function with string return value\n"; 49 echo "callback function with null return value\n"; 64 callback function with int return value 85 callback function with float return value 106 callback function with string return value 127 callback function with null return value [all …]
|
H A D | array_filter_variation9.phpt | 2 Test array_filter() function : usage variations - built-in functions as 'callback' argument 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 11 * Passing built-in functions and different language constructs as 'callback' argument 14 echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***… 18 // using built-in function 'is_int' as 'callback' 21 // using built-in function 'chr' as 'callback' 24 // using language construct 'echo' as 'callback' 27 // using language construct 'exit' as 'callback' 33 *** Testing array_filter() : usage variations - built-in functions as 'callback' argument *** [all …]
|
H A D | array_map_variation11.phpt | 2 Test array_map() function : usage variations - with recursive callback 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 subarrays and recursive callback function 14 echo "*** Testing array_map() : recursive callback function ***\n"; 16 // callback function 30 *** Testing array_map() : recursive callback function ***
|
H A D | array_map_variation19.phpt | 2 Test array_map() function : usage variations - callback pass semantics 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() with a pass-by-value callback forced to behave as a pass-by-reference function. 17 function callback($a) { 21 array_map('callback', $arr1); 25 array_map("callback", $arr2);
|
H A D | array_map_variation17.phpt | 2 Test array_map() function : usage variations - unexpected values for 'callback' argument 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 different scalar/nonscalar values in place of $callback 14 echo "*** Testing array_map() : unexpected values for 'callback' argument ***\n"; 77 *** Testing array_map() : unexpected values for 'callback' argument *** 80 Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in %s on … 84 Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in %s on … 88 Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in %s on … 92 Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in %s on … [all …]
|
H A D | array_map_variation15.phpt | 2 Test array_map() function : usage variations - non existent '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 non existent function for $callback argument 14 echo "*** Testing array_map() : non existent 'callback' function ***\n"; 26 *** Testing array_map() : non existent 'callback' function *** 28 Warning: array_map() expects parameter 1 to be a valid callback, function 'non_existent' not found …
|
H A D | array_map_variation7.phpt | 5 /* Prototype : array array_map ( callback $callback , array $arr1 [, array $... ] ) 6 * Description: Applies the callback to the elements of the given arrays 16 * 5) one more array than callback function arguments 21 function callback($a, $b) 27 var_dump( array_map('callback', array(1, 2, 3), array()) ); 28 var_dump( array_map('callback', array(), array('a', 'b', 'c')) ); 29 var_dump( array_map('callback', array(1, 2, 3), array('a', 'b')) ); 30 var_dump( array_map('callback', array(012, 0x2F, 0X1A), array(2.3, 12.4e2)) ); 31 var_dump( array_map('callback', array(), array(1, 2, 3), array('a', 'b')) ); // passing more no. o…
|
H A D | array_filter_variation5.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 11 * With default callback function argument, array_filter() removes elements which are interpreted as… 15 // callback function always_true 21 // callback function always_false 57 // With default callback function 60 // With callback function which returns always true 63 // With callback function which returns always false
|
H A D | array_filter_variation4.phpt | 2 Test array_filter() function : usage variations - Different types of 'callback' function 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 11 * Passing different types of callback functions to array_filter() 18 echo "*** Testing array_filter() : usage variation - different 'callback' functions***\n"; 23 // callback function without parameters and with return value 31 // callback function with parameter and without return value 39 // callback function without parameter and without return value 46 // callback function with parameter and with return value 62 *** Testing array_filter() : usage variation - different 'callback' functions***
|
H A D | array_filter_variation6.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 6 * Description: Filters elements from the array via the callback. 17 /* Prototype : bool callback(array $input) 23 function callback($input) 38 // with 'callback' argument 39 var_dump( array_filter($input, 'callback') ); 41 // with default 'callback' argument
|
H A D | array_filter_variation10.phpt | 2 Test array_filter() function : usage variations - using the array keys inside 'callback' 5 /* Prototype : array array_filter(array $input [, callback $callback [, bool $use_type = ARRAY_FIL… 6 * Description: Filters elements from the array via the callback. 11 * Using array keys as an argument to the 'callback' 14 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n"; 26 echo "*** Testing array_filter() : usage variations - 'callback' filters based on key value ***\n"; 35 echo "*** Testing array_filter() : usage variations - 'callback' expecting second argument ***\n"; 56 *** Testing array_filter() : usage variations - using array keys in 'callback' *** 67 *** Testing array_filter() : usage variations - 'callback' filters based on key value *** 76 *** Testing array_filter() : usage variations - 'callback' expecting second argument ***
|
/PHP-7.4/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); 40 --> Use callback 'return_empty_string': 43 --> Use callback 'return_false': 46 --> Use callback 'return_null': 49 --> Use callback 'return_string': 52 --> 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
|
H A D | ob_start_basic_unerasable_002.phpt | 5 function callback($string) { 8 return "[callback:$callback_invocations]$string\n"; 11 ob_start('callback', 0, false); 22 [callback:1]All of the following calls will fail to clean/remove the topmost buffer: 24 Notice: ob_clean(): failed to delete buffer of callback (0) in %s on line 11 27 Notice: ob_end_clean(): failed to discard buffer of callback (0) in %s on line 12 30 Notice: ob_end_flush(): failed to send buffer of callback (0) in %s on line 13
|
/PHP-7.4/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"; 39 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n"; 46 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n"; 54 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n"; 61 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n"; 69 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n"; 83 ini.get("assert.callback") => [f2] 92 ini.get("assert.callback") => [f2] 101 ini.get("assert.callback") => [f2] [all …]
|