Home
last modified time | relevance | path

Searched refs:function (Results 76 – 100 of 7043) sorted by relevance

12345678910>>...282

/PHP-7.0/ext/standard/tests/array/
H A Darray_map_error.phpt2 Test array_map() function : error conditions
13 echo "\n-- Testing array_map() function with Zero arguments --\n";
17 echo "\n-- Testing array_map() function with one less than expected no. of arguments --\n";
18 function callback1() {
23 echo "\n-- Testing array_map() function with less no. of arrays than callback function arguments --…
25 function callback2($p, $q) {
30 echo "\n-- Testing array_map() function with more no. of arrays than callback function arguments --…
40 -- Testing array_map() function with Zero arguments --
45 -- Testing array_map() function with one less than expected no. of arguments --
50 -- Testing array_map() function with less no. of arrays than callback function arguments --
[all …]
H A Darray_walk_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()
54 *** Testing array_walk() : callback function variation ***
55 -- callback function with both parameters --
69 -- callback function with only one parameter --
[all …]
H A Darray_intersect_uassoc_variation9.phpt2 Test array_intersect_uassoc() function : usage variation - Passing non-existing function name to ca…
6 …tes the intersection of arrays with additional index check, compares indexes by a callback function
16 //function name within double quotes
19 //function name within single quotes
22 //function name without quotes
29 …c() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
32 …c() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
37 …c() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
H A Darray_intersect_ukey_variation8.phpt2 Test array_intersect_ukey() function : usage variation - Passing non-existing function name to call…
6 …* Description: Computes the intersection of arrays using a callback function on the keys for compa…
16 //function name within double quotes
19 //function name within single quotes
22 //function name without quotes
29 …y() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
32 …y() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
37 …y() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid f…
H A Darray_map_variation12.phpt2 Test array_map() function : usage variations - built-in function as callback
11 * Test array_map() by passing buit-in function as callback function
14 echo "*** Testing array_map() : built-in function ***\n";
19 echo "-- with built-in function 'pow' and two parameters --\n";
22 echo "-- with built-in function 'pow' and one parameter --\n";
31 *** Testing array_map() : built-in function ***
32 -- with built-in function 'pow' and two parameters --
41 -- with built-in function 'pow' and one parameter --
58 …ray_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid functio…
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_filter_error.phpt2 Test array_filter() function : error conditions
13 echo "-- Testing array_filter() function with Zero arguments --";
17 /* callback function
23 function odd($input)
30 echo "-- Testing array_filter() function with more than expected no. of arguments --";
33 // with incorrect callback function
34 echo "-- Testing array_filter() function with incorrect callback --";
41 -- Testing array_filter() function with Zero arguments --
44 -- Testing array_filter() function with more than expected no. of arguments --
47 -- Testing array_filter() function with incorrect callback --
[all …]
H A Darray_udiff_assoc_variation5.phpt2 Test array_udiff_assoc() function : usage variation - incorrect comparison functions
6 … but do additional checks whether the keys are equal. Keys are compared by user supplied function.
17 echo "\n-- comparison function with an incorrect return value --\n";
18 function incorrect_return_value ($val1, $val2) {
23 echo "\n-- comparison function taking too many parameters --\n";
24 function too_many_parameters ($val1, $val2, $val3) {
29 echo "\n-- comparison function taking too few parameters --\n";
30 function too_few_parameters ($val1) {
41 -- comparison function with an incorrect return value --
47 -- comparison function taking too many parameters --
[all …]
/PHP-7.0/ext/session/tests/
H A Dbug61728.phpt7 function output_html($ext) {
11 function open ($save_path, $session_name) {
15 function close() {
19 function read ($id) {
22 function write ($id, $sess_data) {
29 function destroy ($id) {
32 function gc ($maxlifetime) {
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) { }
/PHP-7.0/Zend/tests/
H A Dbug70321.phpt8 public function __construct()
12 public function & __get($key)
18 public function & offsetGet($key) {
22 public function offsetSet($key, $val) {
24 public function offsetUnset($key) {
26 public function offsetExists($key) {
32 $foo->bar->onBaz[] = function() {};
36 $foo["bar"]->onBaz[] = function() {};
H A Dclosure_005.phpt9 function __construct($x) {
13 function __destruct() {
17 function getIncer($val) {
18 return function() use ($val) {
23 function getPrinter() {
24 return function() {
29 function getError() {
30 return static function() {
35 function printX() {
H A Dbug33710.phpt8 function offsetExists($offset) {/*...*/}
9 function offsetGet($offset) {/*...*/}
10 function offsetSet($offset, $value) {/*...*/}
11 function offsetUnset($offset) {/*...*/}
13 function fail()
18 function succeed()
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 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 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() { }
/PHP-7.0/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.0/ext/soap/tests/interop/Round4/GroupG/
H A Dround4_groupG_dimedoc.inc4 function EchoBase64AsAttachment($in) {
8 function EchoAttachmentAsBase64($in) {
12 function EchoAttachment($in) {
16 function EchoAttachments($in) {
20 function EchoAttachmentAsString($in) {
24 function EchoUnrefAttachments($in) {
H A Dround4_groupG_dimerpc.inc4 function EchoBase64AsAttachment($in) {
8 function EchoAttachmentAsBase64($in) {
12 function EchoAttachment($in) {
16 function EchoAttachments($in) {
20 function EchoAttachmentAsString($in) {
24 function EchoUnrefAttachments($in) {
/PHP-7.0/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 …]
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());
/PHP-7.0/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 …]
/PHP-7.0/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 …]

Completed in 28 milliseconds

12345678910>>...282