Home
last modified time | relevance | path

Searched refs:function (Results 251 – 275 of 8539) sorted by relevance

1...<<11121314151617181920>>...342

/php-src/Zend/tests/generators/
H A Dgc_with_yield_from.phpt8 function root() {
17 function gen($x) {
36 ["function"]=>
41 ["function"]=>
46 ["function"]=>
51 ["function"]=>
H A Dgh9750-009.phpt6 function f() {
10 public function __construct(public mixed $x) {
12 public function __invoke() {
14 public function __destruct() {
19 $gen = function () use (&$gen) {
H A Dgh9750-011.phpt6 function f() {
10 function getClosure() {
11 return function () {
15 function __destruct() {
20 $gen = function ($c) use (&$gen) {
/php-src/ext/pdo_sqlite/tests/
H A Dgc.phpt10 public function callback() { }
15 $obj->a->sqliteCreateFunction('func1', function() use ($obj) {}, 1);
16 $obj->a->sqliteCreateAggregate('func2', function() use ($obj) {}, function() use($obj) {});
17 $obj->a->sqliteCreateCollation('col', function() use ($obj) {});
/php-src/Zend/tests/use_function/
H A Dconflicting_use.phpt2 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-src/ext/spl/tests/
H A Dregexiterator_setpregflags.phpt11 function current (): mixed{ return null;}
12 function key ( ): mixed{ return "";}
13 function next ( ): void{}
14 function rewind ( ): void{}
15 function valid ( ): bool{}
H A Dbug71202.phpt2 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) {
H A Dregexiterator_getpregflags.phpt11 function current (): mixed { return null; }
12 function key ( ): mixed { return ""; }
13 function next ( ): void {}
14 function rewind ( ): void {}
15 function valid ( ): bool {}
/php-src/Zend/tests/
H A Dbug65108.phpt6 private function f() {}
7 static function __callStatic($name, $args) {}
11 public function __construct() {
20 private function f() {}
21 function __call($name, $args) {}
H A Dnamespace_name_reserved_keywords.phpt7 function test() {
13 function test() {
19 function test() {
26 use function fn\test as test2;
27 use function self\test as test3;
H A Dobjects_021.phpt9 public function __construct() {
13 public function __set($a, $b) {
17 public function __get($a) {
21 public function __call($a, $b) {
26 function x() {
H A Dbug49269.phpt8 function valid(): bool
12 function current(): mixed {return $this->n;}
13 function next(): void {$this->n++;}
14 function key(): mixed { }
15 function rewind(): void {$this->n = 0;}
H A Ddereference_001.phpt7 function a() {
12 function b() {
20 public function test() {
25 function c() {
30 function d() {
36 function e() {
/php-src/ext/opcache/tests/jit/
H A Dassign_dim_004.phpt10 function offsetExists($x): bool {}
11 function offsetGet($x): mixed {}
12 function offsetSet($x, $y): void {
15 function offsetUnset($x): void {}
17 function test() {
/php-src/Zend/tests/traits/
H A Dbug55355.phpt6 // A trait that has a abstract function
8 function bar() {
11 abstract function foo();
17 function foo() {}
25 function foo() {}
32 function foo() {}
/php-src/Zend/tests/type_declarations/intersection_types/variance/
H A Dvalid5.phpt14 public function foo(TestOne|TestTwo $param): X&Y;
19 public function foo(X&Y $param): TestOne|TestTwo;
24 public function foo(X $param): TestTwo;
29 public function foo(Y $param): TestOne;
34 public function foo(X $param): TestTwo;
39 public function foo(Y $param): TestOne;
/php-src/ext/ctype/tests/
H A D002.phpt11 function ctype_test_002($function) {
16 if($function($c)) $n1++;
17 if($function("$c$c$c")) $n2++;
18 if($function("1-$c$c$c-x")) $n3++;
20 print "$function $n1 $n2 $n3\n";
/php-src/Zend/tests/anon/
H A D004.phpt8 public function __construct($data) {
12 public function getArrayAccess() {
15 public function offsetGet($offset): mixed { return $this->data[$offset]; }
16 public function offsetSet($offset, $data): void { $this->data[$offset] = $data; }
17 public function offsetUnset($offset): void { unset($this->data[$offset]); }
18 … public function offsetExists($offset): bool { return isset($this->data[$offset]); }
/php-src/ext/session/tests/user_session_module/
H A Dbug80889a.phpt11 function ($savePath, $sessionName) {
14 function () {
17 function ($id) {
20 function ($id, $data) {
23 function ($id) {
26 function ($maxlifetime) {
H A Dbug60634_error_2.phpt15 function open($save_path, $session_name): bool {
19 function close(): bool {
24 function read($id): string|false {
28 function write($id, $session_data): bool {
33 function destroy($id): bool {
37 function gc($maxlifetime): int {
53 #0 [internal function]: MySessionHandler->write('%s', '')
/php-src/ext/pdo_sqlite/tests/subclasses/
H A Dstream_test.inc12 public function stream_open($path, $mode, $options, &$opened_path)
18 public function stream_read($count)
25 public function stream_write($data)
30 public function stream_stat()
35 public function stream_tell()
40 public function stream_eof()
/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload5.phpt7 spl_autoload_register(function($class) {
10 public function method(): X {}
15 public function method(): Y {}
20 public function method(): Q {}
25 public function method(): R {}
30 public function method(): A {}
35 public function method(): B {}
/php-src/ext/date/tests/
H A Dgmdate_variation11.phpt2 Test gmdate() function : usage variation - Passing Full Date/Time format options to format argument.
11 echo "\n-- Testing gmdate() function with ISO 8601 date format --\n";
15 echo "\n-- Testing gmdate() function with RFC 2822 date format --\n";
19 echo "\n-- Testing gmdate() function with seconds since Unix Epoch format --\n";
27 -- Testing gmdate() function with ISO 8601 date format --
31 -- Testing gmdate() function with RFC 2822 date format --
35 -- Testing gmdate() function with seconds since Unix Epoch format --
/php-src/ext/standard/tests/class_object/
H A Dget_class_methods_basic_003.phpt2 Test get_class_methods() function : basic functionality
10 public function pubI();
15 public function pubI() {}
17 private function privC() {}
18 protected function protC() {}
19 public function pubC() {}
21 public static function testFromC() {
/php-src/ext/reflection/tests/
H A Dgh10623.phpt10 $closure = function($var) use($data1) {};
13 $closure = function($var, ...$variadic) {};
16 $closure = function($var, ...$variadic) use($data1) {};
19 $closure = function($var, ...$variadic) use($data1, $data2, $data3) {};
22 $closure = function(...$variadic) use($data1) {};
25 $closure = function($var, $var2, ...$variadic) {};
28 $closure = function($var, $var2, $var3, ...$variadic) use($data1, $data2, $data3) {};

Completed in 50 milliseconds

1...<<11121314151617181920>>...342