Home
last modified time | relevance | path

Searched refs:function (Results 176 – 200 of 9018) sorted by last modified time

12345678910>>...361

/php-src/ext/reflection/tests/
H A DReflectionFiber_bug_gh11121_2.phpt6 function f() {
10 function g() {
11 (new Fiber(function() {
17 $f = new Fiber(function() { f(); g(); });
30 ["function"]=>
49 ["function"]=>
57 ["function"]=>
H A DReflectionFiber_notrace_2.phpt2 …iber should not segfault when inspecting fibers where the previous stack frame is a native function
24 ["function"]=>
40 ["function"]=>
55 ["function"]=>
H A DReflectionGenerator_basic.phpt6 function foo() {
12 function a() {
16 (function() {
47 ["function"]=>
55 ["function"]=>
86 ["function"]=>
107 ["function"]=>
H A DReflectionGenerator_in_Generator.phpt6 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 Dbug80299.phpt9 $function = function (int &$foo, DateTimeInterface &$bar) {};
11 (new ReflectionFunction($function))->invokeArgs($args);
H A Dclosures_003_v1.phpt6 $closure = function($a, $b = 0) { };
/php-src/ext/spl/tests/
H A Dbug71236.phpt6 spl_autoload_register(function ($class) {});
H A Dbug72051.phpt10 $callbackTest = new CallbackFilterIterator(new ArrayIterator($data), function (&$current) {
/php-src/ext/ffi/tests/
H A Dbug79177.phpt24 $ffi->bug79177_cb = function() {
/php-src/ext/libxml/tests/
H A Dlibxml_set_external_entity_loader_error1.phpt15 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 Dassign_055.phpt10 set_error_handler(function() {
H A Dclosure_001.phpt16 function bar() {
17 return function () {
18 return function () {
19 return function () {
H A Dfetch_dim_rw_004.phpt9 set_error_handler(function(y$y) {
H A Dfetch_obj_006.phpt19 $appendProp2 = (function() {
/php-src/Zend/
H A Dzend_language_parser.y283 %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 Dtype_checking_strict.phpt8 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 Dtype_checking_weak.phpt6 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 Dloading_exception1.phpt6 spl_autoload_register(function($class) {
22 spl_autoload_register(function($class) {
25 public function test(): I {}
28 public function test(): B {}
H A Dloading_exception2.phpt6 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 Dundef_var_in_verify_return.phpt6 set_error_handler(function(int $severity, string $message, string $filename, int $lineNumber): void…
10 function test(): string {
H A Duse_unlinked_class.phpt6 spl_autoload_register(function($class) {
/php-src/Zend/tests/type_declarations/
H A Dscalar_basic.phpt11 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 Dscalar_none.phpt7 '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 Dscalar_null.phpt7 '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 Dscalar_return_basic_64bit.phpt13 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