Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 3639) sorted by relevance

12345678910>>...146

/php-src/Zend/tests/
H A Darginfo_zpp_mismatch.inc3 function skipFunction($function): bool {
6 || $function === 'readline'
10 || $function === 'exit'
11 || $function === 'die'
18 || (is_string($function) && str_starts_with($function, 'ob_'))
20 || $function === 'error_log'
22 || (is_string($function) && str_contains($function, 'connect'))
23 || (is_string($function) && str_starts_with($function, 'snmp'))
24 || (is_array($function) && get_class($function[0]) === mysqli::class
27 || $function === 'mail'
[all …]
H A Dbug54358.phpt6 public function call($function) {
12 $closure = function() use ($asserter, &$function) {
13 $asserter->call($function = 'md5');
18 var_dump($function);
20 $closure = function() use ($asserter, $function) {
21 $asserter->call($function);
26 var_dump($function);
28 $closure = function() use ($asserter, $function) {
29 $asserter->call($function);
34 var_dump($function);
H A Dbug54039.phpt5 function test_1() {
9 $f = function() use($v) {
18 function test_2() {
20 $f = function() use($v) {
31 function test_3() {
35 $f = function() use($v) {
47 Inner function reckons $v is 1
49 Inner function reckons $v is 2
51 Inner function reckons $v is 0
53 Inner function reckons $v is 1
[all …]
/php-src/Zend/tests/grammar/
H A Dsemi_reserved_001.phpt8 function empty(){ echo __METHOD__, PHP_EOL; }
9 function callable(){ echo __METHOD__, PHP_EOL; }
10 function class(){ echo __METHOD__, PHP_EOL; }
11 function trait(){ echo __METHOD__, PHP_EOL; }
12 function extends(){ echo __METHOD__, PHP_EOL; }
16 function final(){ echo __METHOD__, PHP_EOL; }
26 function and(){ echo __METHOD__, PHP_EOL; }
34 function or(){ echo __METHOD__, PHP_EOL; }
59 function function(){ echo __METHOD__, PHP_EOL; }
140 $obj->function();
[all …]
H A Dsemi_reserved_002.phpt8 static function empty(){ echo __METHOD__, PHP_EOL; }
9 static function callable(){ echo __METHOD__, PHP_EOL; }
10 static function class(){ echo __METHOD__, PHP_EOL; }
11 static function trait(){ echo __METHOD__, PHP_EOL; }
12 static function extends(){ echo __METHOD__, PHP_EOL; }
14 static function static(){ echo __METHOD__, PHP_EOL; }
16 static function final(){ echo __METHOD__, PHP_EOL; }
34 static function or(){ echo __METHOD__, PHP_EOL; }
58 static function function(){ echo __METHOD__, PHP_EOL; }
136 Obj::function();
[all …]
H A Dregression_001.phpt7 public static function function(){ echo __METHOD__, PHP_EOL; }
10 Foo::function();
13 function();
16 function();
20 function(
27 Foo::function
28 Foo::function
29 Foo::function
30 Foo::function
/php-src/ext/gmp/tests/
H A Dbug80560.phpt92 $function('0B');
96 $function('0b');
100 $function('0X');
104 $function('0x');
110 $function('0B', 1);
114 $function('0b', 1);
118 $function('0X', 1);
122 $function('0x', 1);
128 $function('0B', 1);
132 $function('0b', 1);
[all …]
/php-src/Zend/tests/magic_methods/
H A Dmagic_methods_inheritance_rules.phpt10 public function __clone(): void {}
12 public function __debugInfo(): ?array {}
14 public function __get(string $name): mixed {}
16 public function __invoke(mixed $arguments): mixed {}
18 public function __isset(string $name): bool {}
20 public function __serialize(): array {}
26 public function __sleep(): array {}
28 public function __toString(): string {}
32 public function __unset(string $name): void {}
34 public function __wakeup(): void {}
[all …]
/php-src/ext/soap/tests/soap12/
H A Dsoap12-test.inc5 function echoOk($x) {
9 function echoString($inputString) {
33 function echoStruct($x) {
37 function echoStructArray($x) {
41 function echoVoid() {
53 function echoHexBinary($hb) {
57 function echoDecimal($dec) {
89 function countItems($input) {
97 function returnVoid() {
100 function emptyBody() {
[all …]
/php-src/Zend/tests/attributes/override/
H A D001.phpt7 public function i();
12 public function i();
16 public function p1() {}
17 public function p2() {}
18 public function p3() {}
19 public function p4() {}
24 public function p1() {}
25 public function p2() {}
27 public function p3() {}
32 public function i() {}
[all …]
/php-src/tests/func/
H A D004.phpt2 General function test
6 echo "Before function declaration...\n";
17 function some_other_function()
19 echo "This is some other function, to ensure more than just one function works fine...\n";
37 Before function declaration...
38 After function declaration...
52 Done with function...
54 Returned from function call...
61 Done with function...
63 Returned from function call...
[all …]
/php-src/Zend/tests/closures/
H A Dclosure_from_callable.inc3 function bar($param1)
9 $closure = function($param1) {
13 function test($fn)
56 public function closePrivateValid()
61 public function closePrivateStatic()
66 public function bar($param1)
71 public function getCallable()
97 public function closePrivateInvalid()
158 public function __invoke($param1)
165 function functionAccessProtected()
[all …]
/php-src/ext/standard/tests/array/
H A Dbug34227.phpt8 function m1()
13 function m2()
18 function m3()
23 function m4()
28 function m5()
33 function m6()
38 function m7()
43 function m8()
76 function p4()
81 function p3()
[all …]
/php-src/ext/reflection/tests/types/
H A DReflectionType_possible_types.phpt7 function(): void {},
8 function(): int {},
9 function(): float {},
10 function(): string {},
11 function(): bool {},
12 function(): array {},
13 function(): callable {},
14 function(): null {},
15 function(): false {},
16 function(): true {},
[all …]
/php-src/Zend/tests/temporary_cleaning/
H A Dtemporary_cleaning_013.phpt8 function __toString() { return "a"; }
35 function __get($x) { return [0]; }
36 function __set($x, $y) {}
58 function offsetUnset($x): void {}
89 function __set($x, $y) {}
113 function __set($x, $y) {}
158 function __set($x, $y) {}
184 function __set($x, $y) {}
222 function __get($x) {}
247 $f = function() {
[all …]
/php-src/ext/spl/tests/
H A Dbug54384.phpt6 function test($f) {
19 test( function() {
29 test( function() {
39 test( function() {
48 test ( function() {
57 test ( function() {
66 test ( function() {
75 test ( function() {
84 test ( function() {
93 test ( function() {
[all …]
/php-src/ext/phar/phar/
H A Dphar.inc23 function getSignature()
28 function getAlias()
33 function rewind()
37 function valid()
42 function current()
46 function key()
50 function next()
54 function hasChildren()
59 function getChildren()
71 function getStub()
[all …]
/php-src/ext/soap/tests/interop/Round2/Base/
H A Dround2_base.inc4 function echoString($inputString)
9 function echoStringArray($inputStringArray)
15 function echoInteger($inputInteger)
25 function echoFloat($inputFloat)
35 function echoStruct($inputStruct)
45 function echoVoid()
50 function echoBase64($b_encoded)
55 function echoDate($timeInstant)
60 function echoHexBinary($hb)
65 function echoDecimal($dec)
[all …]
/php-src/Zend/tests/return_types/
H A Dgenerators001.phpt5 function test1() : Generator {
9 function test2() : Iterator {
17 function test4() : mixed {
21 function test5() : object {
45 ["function"]=>
49 ["function"]=>
53 ["function"]=>
57 ["function"]=>
61 ["function"]=>
65 ["function"]=>
[all …]
/php-src/tests/security/
H A Dopen_basedir.inc60 function create_directories() {
71 function delete_directories() {
76 function test_open_basedir_error($function) {
78 var_dump($function("../bad"));
80 var_dump($function(".."));
81 var_dump($function("../"));
82 var_dump($function("/"));
89 function test_open_basedir_before($function, $change = TRUE) {
104 function test_open_basedir_after($function) {
109 function test_open_basedir_array($function) {
[all …]
/php-src/tests/classes/
H A Dvisibility_003c.phpt7 function f0() {}
8 function f1() {}
9 public function f2() {}
10 protected function f3() {}
11 private function f4() {}
17 function f0() {}
18 public function f1() {}
19 public function f2() {}
20 protected function f3() {}
21 private function f4() {}
[all …]
H A Dvisibility_004c.phpt7 function f0() {}
8 function f1() {}
9 public function f2() {}
10 protected function f3() {}
11 private function f4() {}
17 function f0() {}
18 public function f1() {}
19 public function f2() {}
20 protected function f3() {}
21 private function f4() {}
[all …]
H A Dvisibility_000c.phpt7 function f0() {}
8 function f1() {}
9 public function f2() {}
10 protected function f3() {}
11 private function f4() {}
17 function f0() {}
18 public function f1() {}
19 public function f2() {}
20 protected function f3() {}
21 private function f4() {}
[all …]
H A Dvisibility_001c.phpt7 function f0() {}
8 function f1() {}
9 public function f2() {}
10 protected function f3() {}
11 private function f4() {}
17 function f0() {}
18 public function f1() {}
19 public function f2() {}
20 protected function f3() {}
21 private function f4() {}
[all …]
/php-src/ext/reflection/tests/
H A DReflectionFunction_getNamespaceName.phpt6 function foo() {}
8 $function = new \ReflectionFunction('sort');
9 var_dump($function->inNamespace());
10 var_dump($function->getName());
11 var_dump($function->getNamespaceName());
12 var_dump($function->getShortName());
14 $function = new \ReflectionFunction('A\\B\\foo');
15 var_dump($function->inNamespace());
16 var_dump($function->getName());
17 var_dump($function->getNamespaceName());
[all …]

Completed in 25 milliseconds

12345678910>>...146