/php-src/ext/standard/tests/array/ |
H A D | array_walk_recursive_variation8.phpt | 2 Test array_walk_recursive() function : usage variations - buit-in function as callback 6 * Passing different buit-in functionns as callback function 7 * pow function 8 * min function 12 echo "*** Testing array_walk_recursive() : built-in function as callback ***\n"; 16 echo "-- With 'pow' built-in function --\n"; 19 echo "-- With 'min' built-in function --\n"; 32 *** Testing array_walk_recursive() : built-in function as callback *** 33 -- With 'pow' built-in function -- 35 -- With 'min' built-in function -- [all …]
|
H A D | array_walk_variation8.phpt | 2 Test array_walk() function : usage variations - buit-in function as callback 6 * Passing different buit-in functionns as callback function 7 * pow function 8 * min function 12 echo "*** Testing array_walk() : built-in function as callback ***\n"; 16 echo "-- With 'pow' built-in function --\n"; 19 echo "-- With 'min' built-in function --\n"; 32 *** Testing array_walk() : built-in function as callback *** 33 -- With 'pow' built-in function -- 35 -- With 'min' built-in function -- [all …]
|
H A D | array_filter_variation8.phpt | 2 Test array_filter() function : usage variations - Callback function with different return values 14 function callback1($input) 22 function callback2($input) 30 function callback3($input) 38 function callback4($input) 46 function callback5($input) 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_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"; 19 var_dump( array_filter($input, function() { return true; }) ); 21 // anonymous callback function with argument and null statement 23 var_dump( array_filter($input, function($input) { }) ); 29 Anonymous callback function with regular parameter and statement 40 Anonymous callback function with null argument [all …]
|
H A D | array_filter_variation4.phpt | 2 Test array_filter() function : usage variations - Different types of 'callback' function 18 function callback1() 25 // callback function with parameter and without return value 26 function callback2($input) 32 function callback3() 38 // callback function with parameter and with return value 39 function callback4($input) 55 -- Callback function without parameter and with return -- 74 -- Callback function with parameter and without return -- 77 -- Callback function without parameter and return -- [all …]
|
H A D | array_udiff_variation5.phpt | 2 Test array_udiff() function : usage variation 7 // Initialise function arguments not being substituted (if any) 11 echo "\n-- comparison function with an incorrect return value --\n"; 12 function incorrect_return_value ($val1, $val2) { 17 echo "\n-- comparison function taking too many parameters --\n"; 18 function too_many_parameters ($val1, $val2, $val3) { 27 echo "\n-- comparison function taking too few parameters --\n"; 28 function too_few_parameters ($val1) { 37 -- comparison function with an incorrect return value -- 43 -- comparison function taking too many parameters -- [all …]
|
H A D | array_map_error.phpt | 2 Test array_map() function : error conditions 8 echo "\n-- Testing array_map() function with one less than expected no. of arguments --\n"; 9 function callback1() { 18 echo "\n-- Testing array_map() function with less no. of arrays than callback function arguments --… 20 function callback2($p, $q) { 29 echo "\n-- Testing array_map() function with more no. of arrays than callback function arguments --… 39 -- Testing array_map() function with one less than expected no. of arguments -- 42 -- Testing array_map() function with less no. of arrays than callback function arguments -- 43 Exception: Too few arguments to function callback2(), 1 passed and exactly 2 expected 45 -- Testing array_map() function with more no. of arrays than callback function arguments --
|
H A D | array_map_variation12.phpt | 2 Test array_map() function : usage variations - built-in function as callback 6 * Test array_map() by passing buit-in function as callback function 9 echo "*** Testing array_map() : built-in function ***\n"; 14 echo "-- with built-in function 'pow' and two parameters --\n"; 17 echo "-- with built-in function 'pow' and one parameter --\n"; 34 *** Testing array_map() : built-in function *** 35 -- with built-in function 'pow' and two parameters -- 44 -- with built-in function 'pow' and one parameter -- 47 …ment #1 ($callback) must be a valid callback or null, function "echo" not found or invalid functio…
|
H A D | array_product_variation3.phpt | 2 Test array_product() function : variation 7 echo "\n-- Testing array_product() function with one negative number --\n"; 10 echo "\n-- Testing array_product() function with two negative numbers --\n"; 13 echo "\n-- Testing array_product() function with three negative numbers --\n"; 16 echo "\n-- Testing array_product() function with negative floats --\n"; 19 echo "\n-- Testing array_product() function with negative floats --\n"; 27 -- Testing array_product() function with one negative number -- 30 -- Testing array_product() function with two negative numbers -- 33 -- Testing array_product() function with three negative numbers -- 36 -- Testing array_product() function with negative floats -- [all …]
|
H A D | array_fill_keys_variation4.phpt | 2 Test array_fill_keys() function : variation of parameter 19 public function __toString() { return "Class A object"; } 23 echo "\n-- Testing array_fill_keys() function with float --\n"; 26 echo "\n-- Testing array_fill_keys() function with null --\n"; 29 echo "\n-- Testing array_fill_keys() function with object --\n"; 47 -- Testing array_fill_keys() function with float -- 53 -- Testing array_fill_keys() function with null -- 59 -- Testing array_fill_keys() function with object -- 66 -- Testing array_fill_keys() function with boolean -- 72 -- Testing array_fill_keys() function with resource -- [all …]
|
/php-src/Zend/tests/ |
H A D | debug_backtrace_limit.phpt | 5 function a() { 9 function b() { 13 function c() { 29 [function] => c 43 [function] => c 54 [function] => b 68 [function] => c 79 [function] => b 90 [function] => a 104 [function] => c [all …]
|
H A D | bug29104.phpt | 7 function g() 9 echo "function g - begin\n"; 11 function f() 13 echo "function f\n"; 16 echo "function g - end\n"; 25 function g - begin 26 function g - end 27 function f
|
H A D | method_exists_002.phpt | 7 static public function stat_a2() { 9 static private function stat_b2() { 11 static protected function stat_c2() { 14 private function method_a() { 16 protected function method_b() { 18 public function method_c() { 25 static public function stat_a() { 27 static private function stat_b() { 32 private function method_a() { 34 protected function method_b() { [all …]
|
H A D | bug80391.phpt | 7 public function method1(): mixed {} 8 public function method2(): array|object {} 9 public function method3(iterable $x) {} 10 public function method4(iterable $x) {} 14 public function method1(): iterable {} 15 public function method2(): iterable {} 16 public function method3(mixed $x) {} 17 public function method4(array|object $x) {}
|
/php-src/ext/intl/tests/ |
H A D | ut_common.inc | 8 function ut_run() 37 function dump( $val ) 46 function ut_coll_create( $locale ) 86 function ut_coll_get_strength( $coll ) 118 function ut_coll_get_default() 122 function ut_coll_set_default( $coll ) 197 function ut_nfmt_get_pattern( $fmt ) 231 function ut_loc_get_default( ) 243 function ut_loc_get_script( $locale ) 247 function ut_loc_get_region( $locale ) [all …]
|
/php-src/tests/lang/ |
H A D | returnByReference.006.phpt | 2 Returning a reference from a function via another function 5 function returnConstantByValue() { 9 function &returnConstantByRef() { 13 function &returnVariableByRef() { 17 function &returnFunctionCallByRef($functionToCall) { 21 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 28 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi… 35 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi… 44 ---> 1. Via a return by ref function call, assign by reference the return value of a function that … 50 ---> 2. Via a return by ref function call, assign by reference the return value of a function that … [all …]
|
/php-src/ext/opcache/tests/ |
H A D | preload.inc | 2 function f1() { 6 function f2() { 11 function foo(); 12 function bar(); 15 function foo(); 19 function bar() { } 23 function foo() { } 30 static function foo() { 36 static function bar() { 64 function get_anon() { [all …]
|
/php-src/tests/output/ |
H A D | DummyStreamWrapper.inc | 11 public function stream_cast(int $castAs) 16 public function stream_close(): void { } 18 …public function stream_open(string $path, string $mode, int $options = 0, ?string &$openedPath = n… 23 public function stream_read(int $count) 28 public function stream_seek(int $offset, int $whence = SEEK_SET): bool 34 public function stream_set_option(int $option, int $arg1, ?int $arg2): bool 39 public function stream_stat() 44 public function stream_tell() 49 public function stream_truncate(int $newSize): bool 54 public function stream_write(string $data) { } [all …]
|
/php-src/ext/soap/tests/interop/Round4/GroupI/ |
H A D | round4_groupI_xsd.inc | 4 function echoString($inputString) 13 function echoInteger($inputInteger) 18 function echoFloat($inputFloat) 23 function echoVoid() 27 function echoBase64($inputBase64) 36 function echoDate($timeInstant) 86 function echoHexBinary($hb) 95 function echoDecimal($dec) 147 function echoChoice($input) 156 function echoEnum($input) [all …]
|
/php-src/Zend/tests/variadic/ |
H A D | legal_variadic_override.phpt | 7 public function test1($a, $b) {} 8 public function test2(int $a, int $b) {} 9 public function test3(int $a, int $b) {} 10 public function test4(int $a, string $b) {} 11 public function test5(&$a, &$b) {} 15 public function test1(...$args) {} 16 public function test2(...$args) {} 17 public function test3(int ...$args) {} 18 public function test4(int|string ...$args) {} 19 public function test5(&...$args) {}
|
/php-src/Zend/tests/type_declarations/ |
H A D | add_return_type.phpt | 7 public function a(); 8 public function b(); 9 public function c(); 10 public function d(); 14 public function a() : stdClass; 15 public function c() : callable; 16 public function b() : array; 17 public function d() : int;
|
/php-src/Zend/tests/type_declarations/intersection_types/ |
H A D | parsing_comment.phpt | 7 function f1(A & /* 9 function f2(A & // Comment 11 function f3(A & # Comment 13 function f4(A & # 15 function f6(A & /* 17 function f7(A & // Comment 19 function f8(A & # Comment 21 function f9(A & #
|
/php-src/ext/spl/tests/ |
H A D | CallbackFilterIteratorTest.phpt | 7 function test($value, $key, $inner) { 13 static function test($value, $key, $inner) { 18 function test($value, $key, $inner) { 29 'instance method' => function() { return array(new A, 'test'); }, 30 'static method' => function() { return array('B', 'test'); }, 31 'static method (2)' => function() { return 'B::test'; }, 32 'function' => function() { return 'test'; }, 33 …'anonymous function' => function() { return function($value, $key, $inner) { return test($value, $… 105 = function = 120 = anonymous function =
|
/php-src/Zend/tests/type_declarations/mixed/inheritance/ |
H A D | mixed_return_inheritance_success2.phpt | 8 public function method(): mixed {} 13 public function method(): bool {} 18 public function method(): int {} 23 public function method(): float {} 28 public function method(): string {} 33 public function method(): array {} 38 public function method(): object {} 43 public function method(): stdClass {} 48 public function method(): ?int {} 53 public function method(): ?stdClass {}
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionMethod_getModifiers_basic.phpt | 6 function reflectMethodModifiers($class) { 19 public function foo() { 23 static function stat() { 27 private function priv() { 31 protected function prot() {} 33 public final function fin() {} 43 public function __clone() {} 45 public function __get($a) {} 57 public function __sleep() {} 75 public function int(); [all …]
|