/PHP-7.4/ext/standard/tests/array/ |
H A D | array_uintersect_variation5.phpt | 2 Test array_uintersect() function : usage variation - differing comparison functions 16 echo "\n-- comparison function with an incorrect return value --\n"; 17 function incorrect_return_value ($val1, $val2) { 22 echo "\n-- comparison function taking too many parameters --\n"; 23 function too_many_parameters ($val1, $val2, $val3) { 32 echo "\n-- comparison function taking too few parameters --\n"; 33 function too_few_parameters ($val1) { 44 -- comparison function with an incorrect return value -- 48 -- comparison function taking too many parameters -- 49 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected [all …]
|
H A D | array_walk_recursive_variation9.phpt | 6 * Description: Apply a user function to every member of an array 20 echo "-- callback function with both parameters --\n"; 21 function callback_two_parameter($value, $key) 31 echo "-- callback function with only one parameter --\n"; 32 function callback_one_parameter($value) 41 echo "-- callback function without parameters --\n"; 42 function callback_no_parameter() 55 -- callback function with both parameters -- 69 -- callback function with only one parameter -- 79 -- callback function without parameters -- [all …]
|
H A D | array_uintersect_uassoc_variation6.phpt | 2 Test array_uintersect_uassoc() function : usage variation - incorrect callbacks 16 echo "\n-- comparison function with an incorrect return value --\n"; 17 function incorrect_return_value ($val1, $val2) { 22 echo "\n-- comparison function taking too many parameters --\n"; 23 function too_many_parameters ($val1, $val2, $val3) { 32 echo "\n-- comparison function taking too few parameters --\n"; 33 function too_few_parameters ($val1) { 43 -- comparison function with an incorrect return value -- 47 -- comparison function taking too many parameters -- 48 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected [all …]
|
H A D | array_udiff_uassoc_variation6.phpt | 2 Test array_udiff_uassoc() function : usage variation 16 echo "\n-- comparison function with an incorrect return value --\n"; 17 function incorrect_return_value ($val1, $val2) { 22 echo "\n-- comparison function taking too many parameters --\n"; 23 function too_many_parameters ($val1, $val2, $val3) { 32 echo "\n-- comparison function taking too few parameters --\n"; 33 function too_few_parameters ($val1) { 43 -- comparison function with an incorrect return value -- 49 -- comparison function taking too many parameters -- 50 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected [all …]
|
/PHP-7.4/ext/session/tests/ |
H A D | session_module_name_variation2.phpt | 2 Test session_module_name() function : variation 18 function open($save_path, $session_name) { } 19 function close() { } 20 function read($id) { } 21 function write($id, $session_data) { } 22 function destroy($id) { } 23 function gc($maxlifetime) { }
|
H A D | session_set_save_handler_sid_001.phpt | 2 Test session_set_save_handler() function: create_sid 13 echo "*** Testing session_set_save_handler() function: create_sid ***\n"; 18 public function open($path, $name) { 26 public function close() { 30 public function read($id) { 34 public function write($id, $data) { 39 public function destroy($id) { 43 public function gc($maxlifetime) { 52 public function create_sid() { 75 *** Testing session_set_save_handler() function: create_sid ***
|
H A D | bug80889a.phpt | 11 function ($savePath, $sessionName) { 14 function () { 17 function ($id) { 20 function ($id, $data) { 23 function ($id) { 26 function ($maxlifetime) {
|
H A D | bug60634_error_5.phpt | 14 function open($save_path, $session_name) { 18 function close() { 23 function read($id) { 27 function write($id, $session_data) { 31 function destroy($id) { 35 function gc($maxlifetime) { 48 Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d 50 #0 [internal function]: close()
|
/PHP-7.4/Zend/tests/ |
H A D | bug37632.phpt | 8 protected function test() 16 public function doTest(A1 $obj) 25 protected function test() 36 static protected function test() 53 static protected function test() 67 function __construct($x); 72 protected function __construct() 80 static public function doTest() 89 protected function __construct() 101 protected function __construct() [all …]
|
H A D | bug53958.phpt | 7 $fn1 = function() use ($a) {echo "$a\n"; $a++;}; 8 $fn2 = function() use ($a) {echo "$a\n"; $a++;}; 17 $fn1 = function() use (&$b) {echo "$b\n"; $b++;}; 18 $fn2 = function() use (&$b) {echo "$b\n"; $b++;}; 27 $fn1 = function() use (&$c) {echo "$c\n"; $c++;}; 28 $fn2 = function() use ($c) {echo "$c\n"; $c++;}; 37 $fn1 = function() use ($d) {echo "$d\n"; $d++;}; 38 $fn2 = function() use (&$d) {echo "$d\n"; $d++;};
|
H A D | ns_089.phpt | 6 function foo(){echo __FUNCTION__,"\n";} 7 function bar(){echo __FUNCTION__,"\n";} 10 class A { function __construct() {echo __METHOD__,"\n";} } 11 class B { function __construct() {echo __METHOD__,"\n";} } 12 class C { function __construct() {echo __METHOD__,"\n";} } 13 class D { function __construct() {echo __METHOD__,"\n";} } 23 function foo, 24 function bar as buz, 29 class C { function __construct() {echo __METHOD__,"\n";}} 30 function bar(){echo __FUNCTION__,"\n";}
|
H A D | ns_090.phpt | 6 function foo(){echo __FUNCTION__,"\n";} 7 function bar(){echo __FUNCTION__,"\n";} 10 class A { function __construct() {echo __METHOD__,"\n";} } 11 class B { function __construct() {echo __METHOD__,"\n";} } 12 class C { function __construct() {echo __METHOD__,"\n";} } 13 class D { function __construct() {echo __METHOD__,"\n";} } 18 use Foo\Bar\Baz\{ function foo, function bar as buz, const FOO, const BAR AS BOZ }; 20 class C { function __construct() {echo __METHOD__,"\n";}} 21 function bar(){echo __FUNCTION__,"\n";}
|
H A D | bug72496.phpt | 7 private function getFoo() 12 private function getBar() 17 private function getBaz() 25 public function getFoo($extraArgument) 30 protected function getBar($extraArgument) 35 private function getBaz($extraArgument)
|
H A D | bug30828.phpt | 6 function __construct() { 10 print $t['class'].$t['type'].$t['function']."\n"; 14 function foo() { 18 print $t['class'].$t['type'].$t['function']."\n"; 22 static function bar() { 26 print $t['class'].$t['type'].$t['function']."\n"; 32 function __construct() { 36 function foo() { 40 static function bar() {
|
H A D | list_keyed_evaluation_order.inc | 8 public function __construct(string $name) { 12 public function __toString(): string { 21 public function __construct(array $array) { 25 public function offsetExists($offset): bool { 30 public function offsetUnset($offset): void { 35 public function offsetGet($offset) { 40 public function offsetSet($offset, $value): void { 51 public function __construct(string $label, Indexable $indexable) { 56 public function getIndexable(): Indexable {
|
H A D | bug48770.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) { 34 private function func2($str) { 37 protected function func3($str) { 43 public function func($str) {
|
/PHP-7.4/ext/spl/tests/ |
H A D | bug65328.phpt | 27 public function getHead() 36 public function find($uid) 71 public function getIterator() 140 public function getUid() 181 public function getData() 227 public function current() 235 public function key() 243 public function next() 251 public function rewind() 259 public function valid() [all …]
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionMethod_getModifiers_basic.phpt | 19 public function foo() { 23 static function stat() { 27 private function priv() { 31 protected function prot() {} 33 public final function fin() {} 39 public function __clone() {} 41 public function __get($a) {} 51 public function __sleep() {} 63 public function int(); 64 public function __clone(); [all …]
|
/PHP-7.4/Zend/tests/type_declarations/ |
H A D | iterable_004.phpt | 7 function testArray(array $array) {} 9 function testTraversable(Traversable $traversable) {} 11 function testScalar(int $int) {} 15 function testArray(iterable $iterable) {} 17 function testTraversable(iterable $iterable) {} 19 function testScalar(iterable $iterable) {}
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | php_user_filter_01.phpt | 6 function filter($in, $out, &$consumed, $closing) {} 7 function onCreate() {} 8 function onClose() {} 11 function filter($in, $out, &$consumed) {} 12 function onCreate() {} 13 function onClose() {}
|
/PHP-7.4/tests/lang/ |
H A D | 019.phpt | 6 eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }"); 18 hey, this is a function inside an eval()! 20 hey, this is a function inside an eval()! 22 hey, this is a function inside an eval()! 24 hey, this is a function inside an eval()! 26 hey, this is a function inside an eval()! 28 hey, this is a function inside an eval()! 30 hey, this is a function inside an eval()! 32 hey, this is a function inside an eval()! 34 hey, this is a function inside an eval()! [all …]
|
/PHP-7.4/tests/classes/ |
H A D | final.phpt | 7 function show() { 8 echo "Call to function first::show()\n"; 16 final function show() { 17 echo "Call to function second::show()\n"; 27 Call to function first::show() 28 Call to function second::show()
|
/PHP-7.4/Zend/tests/generators/ |
H A D | yield_from_valid_exception.phpt | 7 function rewind() {} 8 function current() {} 9 function key() {} 10 function next() {} 11 function valid() { 16 function gen() {
|
/PHP-7.4/ext/date/tests/ |
H A D | gmmktime_variation7.phpt | 2 Test gmmktime() function : usage variation - Checking with few optional arguments. 20 echo "\n-- Testing gmmktime() function with one optional argument --\n"; 23 echo "\n-- Testing gmmktime() function with two optional argument --\n"; 26 echo "\n-- Testing gmmktime() function with three optional argument --\n"; 29 echo "\n-- Testing gmmktime() function with four optional argument --\n"; 32 echo "\n-- Testing gmmktime() function with five optional argument --\n"; 40 -- Testing gmmktime() function with one optional argument -- 43 -- Testing gmmktime() function with two optional argument -- 46 -- Testing gmmktime() function with three optional argument -- 49 -- Testing gmmktime() function with four optional argument -- [all …]
|
/PHP-7.4/Zend/tests/traits/ |
H A D | bug60717.phpt | 10 function text($text); 11 function attributes(array $attributes = null); 12 function textArea(array $attributes = null, $value); 17 function text($text) {} 22 function textArea(array $attributes = null, $value) {} 23 abstract function attributes(array $attributes = null); 24 abstract function text($text); 29 function attributes(array $attributes = null) { } 30 abstract function text($text);
|