/PHP-7.4/Zend/tests/ |
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 | 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 | bug49269.phpt | 8 function valid() 12 function current() {return $this->n;} 13 function next() {$this->n++;} 14 function key() { } 15 function rewind() {$this->n = 0;}
|
H A D | bug65108.phpt | 6 private function f() {} 7 static function __callStatic($name, $args) {} 11 public function __construct() { 20 private function f() {} 21 function __call($name, $args) {}
|
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
|
H A D | bug32674.phpt | 9 public function __construct() { 12 public function rewind() { 16 public function count() { 20 public function current() { 25 public function next() { 30 public function key() { 36 public function valid() {
|
H A D | bug54367.phpt | 7 public function offsetSet($offset, $value) { } 8 public function offsetExists($offset) { } 9 public function offsetUnset($offset) { } 11 public function offsetGet ($offset) 13 return function ($var) use ($offset) { // here is the problem
|
/PHP-7.4/ext/session/tests/ |
H A D | bug80889.phpt | 10 public function open($savePath, $sessionName) { 13 public function close() { 16 public function read($id) { 19 public function write($id, $data) { 22 public function destroy($id) { 25 public function gc($maxlifetime) {
|
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.4/Zend/tests/use_function/ |
H A D | conflicting_use.phpt | 2 use function statements with conflicting names 7 function baz() { 13 function baz() { 19 use function foo\baz, bar\baz; 25 Fatal error: Cannot use function bar\baz as baz because the name is already in use in %s on line %d
|
/PHP-7.4/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
|
/PHP-7.4/ext/spl/tests/ |
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)
|
H A D | arrayObject___construct_error2.phpt | 7 function current() {} 8 function next() {} 9 function key() {} 10 function valid() {} 11 function rewind() {}
|
H A D | bug71202.phpt | 2 Bug #71202 (Autoload function registered by another not activated immediately) 6 function inner_autoload ($name){ 9 function __construct(){ 15 function __construct() { 22 spl_autoload_register(function ($name) {
|
/PHP-7.4/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 --
|
/PHP-7.4/ext/hash/tests/ |
H A D | hash_init_error.phpt | 2 Hash: hash_init() function - errors test 7 echo "-- Testing hash_init() function with no parameters --\n"; 10 echo "-- Testing hash_init() function with unknown algorithms --\n"; 13 echo "-- Testing hash_init() function with HASH_HMAC and non-cryptographic algorithms --\n"; 16 echo "-- Testing hash_init() function with HASH_HMAC and no key --\n"; 22 -- Testing hash_init() function with no parameters -- 26 -- Testing hash_init() function with unknown algorithms -- 30 -- Testing hash_init() function with HASH_HMAC and non-cryptographic algorithms -- 34 -- Testing hash_init() function with HASH_HMAC and no key --
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionFunction_getClosure_basic.phpt | 2 Test ReflectionFunction::getClosure() function : basic functionality 6 * Description: Returns a dynamically created closure for the function 13 function foo() 15 var_dump( "Inside foo function" ); 18 function bar( $arg ) 35 string(19) "Inside foo function"
|
H A D | ReflectionFunction_isGenerator_basic.phpt | 6 $closure1 = function() {return "this is a closure"; }; 7 $closure2 = function($param) { 17 function func1() { 21 function func2() { 33 public function f1() { 36 public function f2() {
|
H A D | ReflectionGenerator_getTrace.phpt | 6 function foo() { 11 function bar() 16 function baz() 35 ["function"]=> 47 ["function"]=>
|
/PHP-7.4/Zend/tests/type_declarations/ |
H A D | strict_nested.phpt | 2 Test nested function calls in strict_types=0 and strict_types=1 modes 6 function takes_int(int $x) { 17 function strict_calls_takes_int() { 22 public function call() { 29 function explicit_weak_calls_takes_int() { 34 public function call() {
|
/PHP-7.4/Zend/tests/anon/ |
H A D | 004.phpt | 8 public function __construct($data) { 12 public function getArrayAccess() { 15 public function offsetGet($offset) { return $this->data[$offset]; } 16 public function offsetSet($offset, $data) { return ($this->data[$offset] = $data); } 17 public function offsetUnset($offset) { unset($this->data[$offset]); } 18 public function offsetExists($offset) { return isset($this->data[$offset]); }
|
/PHP-7.4/tests/lang/ |
H A D | bug24926.phpt | 2 Bug #24926 (lambda function (create_function()) cannot be stored in a class property) 12 function __construct() 14 $function = create_function('', 'return "FOO\n";'); 15 print($function()); 17 $this->functions['test'] = $function;
|