Home
last modified time | relevance | path

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

12345678910>>...274

/PHP-7.2/ext/standard/tests/array/
H A Darray_uintersect_assoc_variation5.phpt2 Test array_uintersect_assoc() 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_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_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 …]
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 …]
/PHP-7.2/ext/session/tests/
H A Dsession_set_save_handler_class_018.phpt2 Test session_set_save_handler() function: class with validate_sid
19 echo "*** Testing session_set_save_handler() function: class with validate_sid ***\n";
24 public function open($path, $name) {
32 public function close() {
36 public function read($id) {
40 public function write($id, $data) {
44 public function destroy($id) {
48 public function gc($maxlifetime) {
57 public function create_sid() {
61 public function validate_sid($id) {
[all …]
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 ***
/PHP-7.2/Zend/tests/
H A Dlsb_015.phpt5 function foo() {
9 public static function bla() {
12 public static function getException() {
19 public static function throwException_after() {
22 public static function throwException() {
25 public static function test() {
28 public static function who() {
32 public static function mycatch() {
48 public static function simpleCatch() {
59 public static function who() {
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 Dget_class_methods_002.phpt7 function a();
8 function b();
12 public function a() { }
13 public function b() { }
15 public function __construct() {
20 public function __destruct() { }
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 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 {
/PHP-7.2/ext/standard/tests/strings/
H A Dstrtok_variation2.phpt16 $str = 'this testcase test strtok() function ';
24 public function __toString() {
111 string(37) "this testcase test strtok() function "
113 string(37) "this testcase test strtok() function "
115 string(37) "this testcase test strtok() function "
117 string(37) "this testcase test strtok() function "
119 string(37) "this testcase test strtok() function "
121 string(37) "this testcase test strtok() function "
123 string(37) "this testcase test strtok() function "
125 string(37) "this testcase test strtok() function "
[all …]
H A Dhebrevc_variation2.phpt19 public function __toString() {
100 .The function tries to avoid breaking words<br />
129 .The function tries to avoid breaking words<br />
136 .The function tries to avoid breaking words<br />
143 .The function tries to avoid breaking words<br />
189 function<br />
200 function<br />
208 function<br />
253 .The function tries to avoid breaking words<br />
294 .The function tries to avoid breaking words<br />
[all …]
/PHP-7.2/tests/lang/
H A D032.phpt6 function foo() {}
10 function foo() {}
14 function foo() {}
21 function foo() {}
27 function foo() {}
28 function foo() {}
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.2/ext/reflection/tests/
H A DReflectionFunction_getExtensionName.phpt5 function foo() {}
7 $function = new ReflectionFunction('sort');
8 var_dump($function->getExtensionName());
10 $function = new ReflectionFunction('foo');
11 var_dump($function->getExtensionName());
H A DReflectionFunction_getExtension.phpt5 function foo () {}
7 $function = new ReflectionFunction('sort');
8 var_dump($function->getExtension());
10 $function = new ReflectionFunction('foo');
11 var_dump($function->getExtension());
/PHP-7.2/ext/spl/internal/
H A Dsplfileobject.inc55 function eof()
63 function fgets()
127 function fflush()
135 function ftell()
155 function fgetc()
202 function fstat()
266 function rewind()
275 function valid()
284 function current()
301 function key()
[all …]
/PHP-7.2/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.2/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.2/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.2/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 25 milliseconds

12345678910>>...274