Searched refs:function (Results 176 – 200 of 9018) sorted by last modified time
12345678910>>...361
/php-src/ext/reflection/tests/ |
H A D | ReflectionFiber_bug_gh11121_2.phpt | 6 function f() { 10 function g() { 11 (new Fiber(function() { 17 $f = new Fiber(function() { f(); g(); }); 30 ["function"]=> 49 ["function"]=> 57 ["function"]=>
|
H A D | ReflectionFiber_notrace_2.phpt | 2 …iber should not segfault when inspecting fibers where the previous stack frame is a native function 24 ["function"]=> 40 ["function"]=> 55 ["function"]=>
|
H A D | ReflectionGenerator_basic.phpt | 6 function foo() { 12 function a() { 16 (function() { 47 ["function"]=> 55 ["function"]=> 86 ["function"]=> 107 ["function"]=>
|
H A D | ReflectionGenerator_in_Generator.phpt | 6 function call(ReflectionGenerator $ref, $method, $rec = true) { 14 function doCalls(ReflectionGenerator $ref) { 23 ($gen = (function() use (&$gen) { 28 yield from (function() use ($ref) { 39 ["function"]=> 62 ["function"]=> 70 ["function"]=>
|
H A D | bug80299.phpt | 9 $function = function (int &$foo, DateTimeInterface &$bar) {}; 11 (new ReflectionFunction($function))->invokeArgs($args);
|
H A D | closures_003_v1.phpt | 6 $closure = function($a, $b = 0) { };
|
/php-src/ext/spl/tests/ |
H A D | bug71236.phpt | 6 spl_autoload_register(function ($class) {});
|
H A D | bug72051.phpt | 10 $callbackTest = new CallbackFilterIterator(new ArrayIterator($data), function (&$current) {
|
/php-src/ext/ffi/tests/ |
H A D | bug79177.phpt | 24 $ffi->bug79177_cb = function() {
|
/php-src/ext/libxml/tests/ |
H A D | libxml_set_external_entity_loader_error1.phpt | 15 var_dump(libxml_set_external_entity_loader(function($a, $b, $c, $d) {})); 26 Exception: Too few arguments to function {closure:%s:%d}(), 3 passed and exactly 4 expected
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_055.phpt | 10 set_error_handler(function() {
|
H A D | closure_001.phpt | 16 function bar() { 17 return function () { 18 return function () { 19 return function () {
|
H A D | fetch_dim_rw_004.phpt | 9 set_error_handler(function(y$y) {
|
H A D | fetch_obj_006.phpt | 19 $appendProp2 = (function() {
|
/php-src/Zend/ |
H A D | zend_language_parser.y | 283 %type <num> returns_ref function fn is_reference is_variadic property_modifiers 573 function returns_ref function_name backup_doc_comment '(' parameter_list ')' return_type 948 | method_modifiers function returns_ref identifier backup_doc_comment '(' parameter_list ')' 1263 function returns_ref backup_doc_comment '(' parameter_list ')' lexical_vars return_type 1279 function:
|
/php-src/Zend/tests/type_declarations/union_types/ |
H A D | type_checking_strict.phpt | 8 function dump($value) { 18 function test(string $type, array $values) { 22 $fn = eval("return function($type \$arg) { return \$arg; };"); 44 public function __toString() {
|
H A D | type_checking_weak.phpt | 6 function dump($value) { 16 function test(string $type, array $values) { 20 $fn = eval("return function($type \$arg) { return \$arg; };"); 42 public function __toString() {
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | loading_exception1.phpt | 6 spl_autoload_register(function($class) { 22 spl_autoload_register(function($class) { 25 public function test(): I {} 28 public function test(): B {}
|
H A D | loading_exception2.phpt | 6 spl_autoload_register(function($class) { 24 spl_autoload_register(function($class) { 27 public function test(): J {} 30 public function test(): B {}
|
/php-src/Zend/tests/ |
H A D | undef_var_in_verify_return.phpt | 6 set_error_handler(function(int $severity, string $message, string $filename, int $lineNumber): void… 10 function test(): string {
|
H A D | use_unlinked_class.phpt | 6 spl_autoload_register(function($class) {
|
/php-src/Zend/tests/type_declarations/ |
H A D | scalar_basic.phpt | 11 set_error_handler(function (int $errno, string $errmsg, string $file, int $line) use ($errnames) { 17 'int' => function (int $i) { return $i; }, 18 'float' => function (float $f) { return $f; }, 19 'string' => function (string $s) { return $s; }, 20 'bool' => function (bool $b) { return $b; } 24 public function __toString() { 48 foreach ($functions as $type => $function) { 54 var_dump($function($value));
|
H A D | scalar_none.phpt | 7 'int' => function (int $i) { return $i; }, 8 'float' => function (float $f) { return $f; }, 9 'string' => function (string $s) { return $s; }, 10 'bool' => function (bool $b) { return $b; }, 11 'int nullable' => function (?int $i = NULL) { return $i; }, 12 'float nullable' => function (?float $f = NULL) { return $f; }, 13 'string nullable' => function (?string $s = NULL) { return $s; }, 14 'bool nullable' => function (?bool $b = NULL) { return $b; } 17 foreach ($functions as $type => $function) { 20 var_dump($function()); [all …]
|
H A D | scalar_null.phpt | 7 'int' => function (int $i) { return $i; }, 8 'float' => function (float $f) { return $f; }, 9 'string' => function (string $s) { return $s; }, 10 'bool' => function (bool $b) { return $b; }, 11 'int nullable' => function (?int $i) { return $i; }, 12 'float nullable' => function (?float $f) { return $f; }, 13 'string nullable' => function (?string $s) { return $s; }, 14 'bool nullable' => function (?bool $b) { return $b; } 17 foreach ($functions as $type => $function) { 20 var_dump($function(null));
|
H A D | scalar_return_basic_64bit.phpt | 13 set_error_handler(function (int $errno, string $errmsg, string $file, int $line) use ($errnames) { 19 'int' => function ($i): int { return $i; }, 20 'float' => function ($f): float { return $f; }, 21 'string' => function ($s): string { return $s; }, 22 'bool' => function ($b): bool { return $b; } 26 public function __toString() { 50 foreach ($functions as $type => $function) { 56 var_dump($function($value));
|
Completed in 49 milliseconds
12345678910>>...361