/PHP-7.2/ext/session/tests/ |
H A D | bug60634_error_1.phpt | 14 function open($save_path, $session_name) { 18 function close() { 23 function read($id) { 27 function write($id, $session_data) { 32 function destroy($id) { 36 function gc($maxlifetime) { 54 Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d 56 #0 [internal function]: write(%s, '')
|
H A D | session_module_name_variation3.phpt | 2 Test session_module_name() function : variation 21 function open($save_path, $session_name) { 25 function close() { return true; } 26 function read($id) { return ''; } 27 function write($id, $session_data) { return true; } 28 function destroy($id) { return true; } 29 function gc($maxlifetime) { return true; } 49 #0 [internal function]: open('', 'PHPSESSID')
|
H A D | session_set_save_handler_error3.phpt | 2 Test session_set_save_handler() function : error functionality 21 function open($save_path, $session_name) { 25 function close() { return true; } 26 function read($id) { return false; } 27 function write($id, $session_data) { } 28 function destroy($id) { return true; } 29 function gc($maxlifetime) { return true; } 42 #0 [internal function]: open('', 'PHPSESSID')
|
H A D | bug60634_error_2.phpt | 14 function open($save_path, $session_name) { 18 function close() { 23 function read($id) { 27 function write($id, $session_data) { 32 function destroy($id) { 36 function gc($maxlifetime) { 51 #0 [internal function]: write('%s', '')
|
/PHP-7.2/Zend/tests/ |
H A D | bug48770_3.phpt | 9 public function func($str) { 12 private function func2($str) { 15 protected function func3($str) { 18 private function func22($str) { 24 public function func($str) { 29 private function func2($str) { 32 protected function func3($str) { 38 public function func($str) {
|
H A D | bug30346.phpt | 8 public function __construct() { } 9 public function offsetExists( $offset ) { return false; } 10 public function offsetGet( $offset ) { return $offset; } 11 public function offsetSet( $offset, $data ) { } 12 public function offsetUnset( $offset ) { }
|
H A D | bug73338.phpt | 2 Bug #73338: Ensure exceptions in function init opcodes are cleaned properly 6 try { call_user_func(new class { function __destruct () { throw new Error; } }); } catch (Error $e)… 8 set_error_handler(function() { throw new Error; }); 12 try { (function() { call_user_func("fail"); })(); } catch (Error $e) {} 14 try { [new class { static function foo() {} function __destruct () { throw new Error; } }, "foo"]()…
|
H A D | bug72101.phpt | 7 public function __construct($callback) { 10 public function invoke($invocation) { 17 public function addMatcher( $matcher) { 20 public function invoke( $invocation) { 29 public function invoked($invocation) { 35 public function bar(&$a, &$b, $c) { 38 public function callback(&$a, &$b, $c) { 44 public function __construct(array $parameters) { 51 public function bar(&$a, &$b, $c) { 62 set_error_handler(function() {
|
H A D | 001.phpt | 6 function test1() { 10 function test2($a) { 14 function test3($a, $b) { 37 static function test1($a) { 50 Exception: Too few arguments to function test2(), 0 passed in %s001.php on line 18 and exactly 1 ex… 53 Exception: Too few arguments to function test3(), 1 passed in %s001.php on line 27 and exactly 2 ex… 57 Warning: func_num_args(): Called from the global scope - no function context in %s on line %d
|
/PHP-7.2/ext/spl/tests/ |
H A D | regexiterator_getpregflags.phpt | 11 function current (){} 12 function key ( ){} 13 function next ( ){} 14 function rewind ( ){} 15 function valid ( ){}
|
H A D | iterator_041.phpt | 11 static function fail($state, $method) 19 function __construct() 27 function rewind() 33 function valid() 39 function current() 45 function key() 51 function next() 57 function __destruct() 62 static function test($func, $skip = null)
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | array_filter_variation5.phpt | 2 Test array_filter() function : usage variations - 'input' argument with different false entries 11 * With default callback function argument, array_filter() removes elements which are interpreted as… 15 // callback function always_true 16 function always_true($input) 21 // callback function always_false 22 function always_false($input) 57 // With default callback function 60 // With callback function which returns always true 63 // With callback function which returns always false
|
H A D | shuffle_basic2.phpt | 2 Test shuffle() function : basic functionality - with associative array 14 * before and after shuffle() function is applied on it 27 echo "\n-- input array before shuffle() function is applied --\n"; 30 // applying shuffle() function on the input array 31 echo "\n-- return value from shuffle() function --\n"; 32 var_dump( shuffle($array_arg) ); // prints the return value from shuffle() function 34 echo "\n-- resultant array after shuffle() function is applied --\n"; 42 -- input array before shuffle() function is applied -- 64 -- return value from shuffle() function -- 67 -- resultant array after shuffle() function is applied --
|
H A D | array_walk_error2.phpt | 2 Test array_walk() function : error conditions - callback parameters 6 * Description: Apply a user function to every member of an array 11 * Testing array_walk() by passing more number of parameters to callback function 15 function callback1($value, $key, $user_data ) { 19 function callback2($value, $key, $user_data1, $user_data2) { 48 echo "-- Testing array_walk() function with too many callback parameters --\n"; 59 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 60 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected 61 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 62 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected [all …]
|
H A D | array_walk_recursive_error2.phpt | 2 Test array_walk_recursive() function : error conditions - callback parameters 6 * Description: Apply a user function to every member of an array 11 * Testing array_walk_recursive() by passing more number of parameters to callback function 15 function callback1($value, $key, $user_data ) { 19 function callback2($value, $key, $user_data1, $user_data2) { 48 echo "-- Testing array_walk_recursive() function with too many callback parameters --\n"; 59 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 60 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected 61 Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected 62 Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected [all …]
|
/PHP-7.2/ext/hash/tests/ |
H A D | hash_init_error.phpt | 2 hash_init() function - errors test 11 echo "-- Testing hash_init() function with no parameters --\n"; 14 echo "-- Testing hash_init() function with unknown algorithms --\n"; 17 echo "-- Testing hash_init() function with HASH_HMAC and non-cryptographic algorithms --\n"; 20 echo "-- Testing hash_init() function with HASH_HMAC and no key --\n"; 26 -- Testing hash_init() function with no parameters -- 30 -- Testing hash_init() function with unknown algorithms -- 34 -- Testing hash_init() function with HASH_HMAC and non-cryptographic algorithms -- 38 -- Testing hash_init() function with HASH_HMAC and no key --
|
/PHP-7.2/ext/date/tests/ |
H A D | gmdate_variation12.phpt | 2 Test gmdate() function : usage variation - Valid and invalid range of timestamp. 17 echo "\n-- Testing gmdate() function with minimum range of timestamp --\n"; 21 echo "\n-- Testing gmdate() function with less than the range of timestamp --\n"; 24 echo "\n-- Testing gmdate() function with maximum range of timestamp --\n"; 28 echo "\n-- Testing gmdate() function with greater than the range of timestamp --\n"; 37 -- Testing gmdate\(\) function with minimum range of timestamp -- 40 -- Testing gmdate\(\) function with less than the range of timestamp -- 43 -- Testing gmdate\(\) function with maximum range of timestamp -- 46 -- Testing gmdate\(\) function with greater than the range of timestamp --
|
H A D | gmdate_variation6.phpt | 2 Test gmdate() function : usage variation - Passing Month format options to format argument. 17 echo "\n-- Testing gmdate() function with full textual representation of month format --\n"; 21 echo "\n-- Testing gmdate() function with numeric representation of month format --\n"; 25 echo "\n-- Testing gmdate() function with short textual representation of month format --\n"; 29 echo "\n-- Testing gmdate() function with numeric representation of month without leading zeros for… 33 echo "\n-- Testing gmdate() function with number of days in a month format --\n"; 42 -- Testing gmdate() function with full textual representation of month format -- 46 -- Testing gmdate() function with numeric representation of month format -- 50 -- Testing gmdate() function with short textual representation of month format -- 54 -- Testing gmdate() function with numeric representation of month without leading zeros format -- [all …]
|
/PHP-7.2/tests/classes/ |
H A D | array_access_009.phpt | 10 function proxyGet($element); 12 function proxyUnset($element, $index); 31 function offsetExists($index) { 36 function offsetGet($index) { 47 function offsetUnset($index) { 57 function __construct() 62 function offsetExists($index) 67 function offsetGet($index) 72 function offsetSet($index, $value) 77 function offsetUnset($index) [all …]
|
/PHP-7.2/Zend/tests/return_types/ |
H A D | void_disallowed2.phpt | 6 function foo(): void { 7 return -1; // not permitted in a void function 10 // Note the lack of function call: function validated at compile-time 12 Fatal error: A void function must not return a value in %s on line %d
|
/PHP-7.2/tests/lang/ |
H A D | bug21961.phpt | 9 function __construct() 15 function getdrunk($where) 20 function getName() 30 function __construct($w) 35 function getName() 40 function whosdrunk()
|
H A D | engine_assignExecutionOrder_005.phpt | 6 function i1() { 11 function i2() { 16 function i3() { 21 function i4() { 26 function i5() { 31 function i6() {
|
/PHP-7.2/ext/standard/tests/time/ |
H A D | strptime_error.phpt | 2 Test localtime() function : error conditions 6 echo "SKIP strptime function not available in build"; 22 echo "\n-- Testing strptime() function with Zero arguments --\n"; 25 echo "\n-- Testing strptime() function with less than expected no. of arguments --\n"; 31 echo "\n-- Testing strptime() function with more than expected no. of arguments --\n"; 35 echo "\n-- Testing strptime() function on failure --\n"; 43 -- Testing strptime() function with Zero arguments -- 48 -- Testing strptime() function with less than expected no. of arguments -- 53 -- Testing strptime() function with more than expected no. of arguments -- 58 -- Testing strptime() function on failure --
|
/PHP-7.2/ext/reflection/tests/ |
H A D | ReflectionObject_getConstructor_basic.phpt | 2 ReflectionObject::getConstructor() - basic function test 6 function __construct() {} 13 function OldCtor() {} 21 function Y() {} 28 function OldAndNewCtor() {} 29 function __construct() {} 33 function __construct() {} 34 function NewAndOldCtor() {} 37 function B() {} 41 function C() {} [all …]
|
/PHP-7.2/ext/standard/tests/mail/ |
H A D | ezmlm_hash_error.phpt | 2 Test ezmlm_hash() function : error conditions 12 echo "\n-- Testing ezmlm_hash() function with fewer than expected no. of arguments --\n"; 15 echo "\n-- Testing ezmlm_hash() function with more than expected no. of arguments --\n"; 19 echo "\n-- Testing ezmlm_hash() function with invalid input - ARRAY --\n"; 24 echo "\n-- Testing ezmlm_hash() function with invalid input - OBJECT without 'cast_object' method -… 31 echo "\n-- Testing ezmlm_hash() function with invalid input - RESOURCE --\n"; 42 -- Testing ezmlm_hash() function with fewer than expected no. of arguments -- 47 -- Testing ezmlm_hash() function with more than expected no. of arguments -- 52 -- Testing ezmlm_hash() function with invalid input - ARRAY -- 57 -- Testing ezmlm_hash() function with invalid input - OBJECT without 'cast_object' method -- [all …]
|