Home
last modified time | relevance | path

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

1...<<11121314151617181920>>...335

/php-src/Zend/tests/
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() {
H A Dclosure_062.phpt7 public function method() {
9 $fn = function() {
14 $fn = static function() {
19 $fn = function() {
25 public static function staticMethod() {
27 $fn = function() {
32 $fn = static function() {
37 $fn = function() {
/php-src/ext/spl/tests/
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 {}
H A Diterator_003.phpt11 public function __construct($id, $name)
17 public function __toString()
22 public function getId()
32 public function __construct(ArrayObject $students, Student $other)
38 public function accept(): bool
49 public function __construct()
54 public function add(Student $student)
61 public function contains(Student $student)
72 public function getIterator(): Traversable {
/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) {};
/php-src/ext/standard/tests/array/
H A Darray_fill_keys_variation1.phpt2 Test array_fill_keys() function : variation of parameter
15 public function __toString() { return "Class A object"; }
20 echo "\n-- Testing array_fill_keys() function with empty arguments --\n";
23 echo "\n-- Testing array_fill_keys() function with keyed array --\n";
27 echo "\n-- Testing array_fill_keys() function with mixed array --\n";
37 -- Testing array_fill_keys() function with empty arguments --
41 -- Testing array_fill_keys() function with keyed array --
53 -- Testing array_fill_keys() function with mixed array --
H A Darray_fill_keys_variation2.phpt2 Test array_fill_keys() function : variation of parameter
18 public function __toString() { return "Class A object"; }
23 echo "\n-- Testing array_fill_keys() function with reference value --\n";
27 echo "\n-- Testing array_fill_keys() function with reference keys --\n";
35 echo "\n-- Testing array_fill_keys() function with reference array input --\n";
46 -- Testing array_fill_keys() function with reference value --
54 -- Testing array_fill_keys() function with reference keys --
68 -- Testing array_fill_keys() function with reference array input --
/php-src/ext/opcache/tests/
H A Dbug78015.phpt10 function test1() {
17 function test2() {
24 function test3() {
31 function test4() {
38 function test5() {
45 function test6() {
53 function test7() {
63 function test8($array) {
76 function test9() {
/php-src/tests/lang/
H A DreturnByReference.004.phpt6 static function returnConstantByValue() {
10 static function &returnConstantByRef() {
14 static function &returnVariableByRef() {
19 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
26 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
33 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
42 ---> 1. Trying to assign by reference the return value of a function that returns by value:
48 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
54 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
H A DreturnByReference.005.phpt6 function returnConstantByValue() {
10 function &returnConstantByRef() {
14 static function &returnVariableByRef() {
20 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
27 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
34 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
43 ---> 1. Trying to assign by reference the return value of a function that returns by value:
49 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
55 ---> 3. Trying to assign by reference the return value of a function that returns by ref:

Completed in 120 milliseconds

1...<<11121314151617181920>>...335