Home
last modified time | relevance | path

Searched refs:function (Results 101 – 125 of 6569) sorted by relevance

12345678910>>...263

/PHP-7.4/ext/standard/tests/array/
H A Darray_uintersect_variation5.phpt2 Test array_uintersect() function : usage variation - differing comparison functions
16 echo "\n-- comparison function with an incorrect return value --\n";
17 function incorrect_return_value ($val1, $val2) {
22 echo "\n-- comparison function taking too many parameters --\n";
23 function too_many_parameters ($val1, $val2, $val3) {
32 echo "\n-- comparison function taking too few parameters --\n";
33 function too_few_parameters ($val1) {
44 -- comparison function with an incorrect return value --
48 -- comparison function taking too many parameters --
49 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected
[all …]
H A Darray_walk_recursive_variation9.phpt6 * Description: Apply a user function to every member of an array
20 echo "-- callback function with both parameters --\n";
21 function callback_two_parameter($value, $key)
31 echo "-- callback function with only one parameter --\n";
32 function callback_one_parameter($value)
41 echo "-- callback function without parameters --\n";
42 function callback_no_parameter()
55 -- callback function with both parameters --
69 -- callback function with only one parameter --
79 -- callback function without parameters --
[all …]
H A Darray_uintersect_uassoc_variation6.phpt2 Test array_uintersect_uassoc() function : usage variation - incorrect callbacks
16 echo "\n-- comparison function with an incorrect return value --\n";
17 function incorrect_return_value ($val1, $val2) {
22 echo "\n-- comparison function taking too many parameters --\n";
23 function too_many_parameters ($val1, $val2, $val3) {
32 echo "\n-- comparison function taking too few parameters --\n";
33 function too_few_parameters ($val1) {
43 -- comparison function with an incorrect return value --
47 -- comparison function taking too many parameters --
48 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected
[all …]
H A Darray_udiff_uassoc_variation6.phpt2 Test array_udiff_uassoc() function : usage variation
16 echo "\n-- comparison function with an incorrect return value --\n";
17 function incorrect_return_value ($val1, $val2) {
22 echo "\n-- comparison function taking too many parameters --\n";
23 function too_many_parameters ($val1, $val2, $val3) {
32 echo "\n-- comparison function taking too few parameters --\n";
33 function too_few_parameters ($val1) {
43 -- comparison function with an incorrect return value --
49 -- comparison function taking too many parameters --
50 Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected
[all …]
/PHP-7.4/ext/session/tests/
H A Dsession_module_name_variation2.phpt2 Test session_module_name() function : variation
18 function open($save_path, $session_name) { }
19 function close() { }
20 function read($id) { }
21 function write($id, $session_data) { }
22 function destroy($id) { }
23 function gc($maxlifetime) { }
H A Dsession_set_save_handler_sid_001.phpt2 Test session_set_save_handler() function: create_sid
13 echo "*** Testing session_set_save_handler() function: create_sid ***\n";
18 public function open($path, $name) {
26 public function close() {
30 public function read($id) {
34 public function write($id, $data) {
39 public function destroy($id) {
43 public function gc($maxlifetime) {
52 public function create_sid() {
75 *** Testing session_set_save_handler() function: create_sid ***
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_5.phpt14 function open($save_path, $session_name) {
18 function close() {
23 function read($id) {
27 function write($id, $session_data) {
31 function destroy($id) {
35 function gc($maxlifetime) {
48 Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d
50 #0 [internal function]: close()
/PHP-7.4/Zend/tests/
H A Dbug37632.phpt8 protected function test()
16 public function doTest(A1 $obj)
25 protected function test()
36 static protected function test()
53 static protected function test()
67 function __construct($x);
72 protected function __construct()
80 static public function doTest()
89 protected function __construct()
101 protected function __construct()
[all …]
H A Dbug53958.phpt7 $fn1 = function() use ($a) {echo "$a\n"; $a++;};
8 $fn2 = function() use ($a) {echo "$a\n"; $a++;};
17 $fn1 = function() use (&$b) {echo "$b\n"; $b++;};
18 $fn2 = function() use (&$b) {echo "$b\n"; $b++;};
27 $fn1 = function() use (&$c) {echo "$c\n"; $c++;};
28 $fn2 = function() use ($c) {echo "$c\n"; $c++;};
37 $fn1 = function() use ($d) {echo "$d\n"; $d++;};
38 $fn2 = function() use (&$d) {echo "$d\n"; $d++;};
H A Dns_089.phpt6 function foo(){echo __FUNCTION__,"\n";}
7 function bar(){echo __FUNCTION__,"\n";}
10 class A { function __construct() {echo __METHOD__,"\n";} }
11 class B { function __construct() {echo __METHOD__,"\n";} }
12 class C { function __construct() {echo __METHOD__,"\n";} }
13 class D { function __construct() {echo __METHOD__,"\n";} }
23 function foo,
24 function bar as buz,
29 class C { function __construct() {echo __METHOD__,"\n";}}
30 function bar(){echo __FUNCTION__,"\n";}
H A Dns_090.phpt6 function foo(){echo __FUNCTION__,"\n";}
7 function bar(){echo __FUNCTION__,"\n";}
10 class A { function __construct() {echo __METHOD__,"\n";} }
11 class B { function __construct() {echo __METHOD__,"\n";} }
12 class C { function __construct() {echo __METHOD__,"\n";} }
13 class D { function __construct() {echo __METHOD__,"\n";} }
18 use Foo\Bar\Baz\{ function foo, function bar as buz, const FOO, const BAR AS BOZ };
20 class C { function __construct() {echo __METHOD__,"\n";}}
21 function bar(){echo __FUNCTION__,"\n";}
H A Dbug72496.phpt7 private function getFoo()
12 private function getBar()
17 private function getBaz()
25 public function getFoo($extraArgument)
30 protected function getBar($extraArgument)
35 private function getBaz($extraArgument)
H A Dbug30828.phpt6 function __construct() {
10 print $t['class'].$t['type'].$t['function']."\n";
14 function foo() {
18 print $t['class'].$t['type'].$t['function']."\n";
22 static function bar() {
26 print $t['class'].$t['type'].$t['function']."\n";
32 function __construct() {
36 function foo() {
40 static function bar() {
H A Dlist_keyed_evaluation_order.inc8 public function __construct(string $name) {
12 public function __toString(): string {
21 public function __construct(array $array) {
25 public function offsetExists($offset): bool {
30 public function offsetUnset($offset): void {
35 public function offsetGet($offset) {
40 public function offsetSet($offset, $value): void {
51 public function __construct(string $label, Indexable $indexable) {
56 public function getIndexable(): Indexable {
H A Dbug48770.phpt9 public function func($str) {
12 private function func2($str) {
15 protected function func3($str) {
18 private function func22($str) {
24 public function func($str) {
34 private function func2($str) {
37 protected function func3($str) {
43 public function func($str) {
/PHP-7.4/ext/spl/tests/
H A Dbug65328.phpt27 public function getHead()
36 public function find($uid)
71 public function getIterator()
140 public function getUid()
181 public function getData()
227 public function current()
235 public function key()
243 public function next()
251 public function rewind()
259 public function valid()
[all …]
/PHP-7.4/ext/reflection/tests/
H A DReflectionMethod_getModifiers_basic.phpt19 public function foo() {
23 static function stat() {
27 private function priv() {
31 protected function prot() {}
33 public final function fin() {}
39 public function __clone() {}
41 public function __get($a) {}
51 public function __sleep() {}
63 public function int();
64 public function __clone();
[all …]
/PHP-7.4/Zend/tests/type_declarations/
H A Diterable_004.phpt7 function testArray(array $array) {}
9 function testTraversable(Traversable $traversable) {}
11 function testScalar(int $int) {}
15 function testArray(iterable $iterable) {}
17 function testTraversable(iterable $iterable) {}
19 function testScalar(iterable $iterable) {}
/PHP-7.4/ext/standard/tests/filters/
H A Dphp_user_filter_01.phpt6 function filter($in, $out, &$consumed, $closing) {}
7 function onCreate() {}
8 function onClose() {}
11 function filter($in, $out, &$consumed) {}
12 function onCreate() {}
13 function onClose() {}
/PHP-7.4/tests/lang/
H A D019.phpt6 eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }");
18 hey, this is a function inside an eval()!
20 hey, this is a function inside an eval()!
22 hey, this is a function inside an eval()!
24 hey, this is a function inside an eval()!
26 hey, this is a function inside an eval()!
28 hey, this is a function inside an eval()!
30 hey, this is a function inside an eval()!
32 hey, this is a function inside an eval()!
34 hey, this is a function inside an eval()!
[all …]
/PHP-7.4/tests/classes/
H A Dfinal.phpt7 function show() {
8 echo "Call to function first::show()\n";
16 final function show() {
17 echo "Call to function second::show()\n";
27 Call to function first::show()
28 Call to function second::show()
/PHP-7.4/Zend/tests/generators/
H A Dyield_from_valid_exception.phpt7 function rewind() {}
8 function current() {}
9 function key() {}
10 function next() {}
11 function valid() {
16 function gen() {
/PHP-7.4/ext/date/tests/
H A Dgmmktime_variation7.phpt2 Test gmmktime() function : usage variation - Checking with few optional arguments.
20 echo "\n-- Testing gmmktime() function with one optional argument --\n";
23 echo "\n-- Testing gmmktime() function with two optional argument --\n";
26 echo "\n-- Testing gmmktime() function with three optional argument --\n";
29 echo "\n-- Testing gmmktime() function with four optional argument --\n";
32 echo "\n-- Testing gmmktime() function with five optional argument --\n";
40 -- Testing gmmktime() function with one optional argument --
43 -- Testing gmmktime() function with two optional argument --
46 -- Testing gmmktime() function with three optional argument --
49 -- Testing gmmktime() function with four optional argument --
[all …]
/PHP-7.4/Zend/tests/traits/
H A Dbug60717.phpt10 function text($text);
11 function attributes(array $attributes = null);
12 function textArea(array $attributes = null, $value);
17 function text($text) {}
22 function textArea(array $attributes = null, $value) {}
23 abstract function attributes(array $attributes = null);
24 abstract function text($text);
29 function attributes(array $attributes = null) { }
30 abstract function text($text);

Completed in 60 milliseconds

12345678910>>...263