Home
last modified time | relevance | path

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

12345678910>>...248

/PHP-7.2/ext/standard/tests/array/
H A Darray_map_variation16.phpt2 Test array_map() function : usage variations - failing built-in functions & language constructs
43 …ray_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid functio…
47 …ay_map() expects parameter 1 to be a valid callback, function 'array' not found or invalid functio…
51 …ay_map() expects parameter 1 to be a valid callback, function 'empty' not found or invalid functio…
55 …ray_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid functio…
59 …ray_map() expects parameter 1 to be a valid callback, function 'exit' not found or invalid functio…
63 …ay_map() expects parameter 1 to be a valid callback, function 'isset' not found or invalid functio…
67 …ray_map() expects parameter 1 to be a valid callback, function 'list' not found or invalid functio…
71 …ay_map() expects parameter 1 to be a valid callback, function 'print' not found or invalid functio…
H A Darray_fill_keys_variation4.phpt2 Test array_fill_keys() function : variation of parameter
25 public function __toString() { return "Class A object"; }
29 echo "\n-- Testing array_fill_keys() function with float --\n";
32 echo "\n-- Testing array_fill_keys() function with null --\n";
35 echo "\n-- Testing array_fill_keys() function with object --\n";
53 -- Testing array_fill_keys() function with float --
59 -- Testing array_fill_keys() function with null --
65 -- Testing array_fill_keys() function with object --
72 -- Testing array_fill_keys() function with boolean --
78 -- Testing array_fill_keys() function with resource --
[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_udiff_assoc_variation5.phpt2 Test array_udiff_assoc() function : usage variation - incorrect comparison functions
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) {
33 echo "\n-- comparison function taking too few parameters --\n";
34 function too_few_parameters ($val1) {
44 -- comparison function with an incorrect return value --
50 -- comparison function taking too many parameters --
51 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_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 …]
/PHP-7.2/Zend/tests/generators/
H A Dbug71013.phpt7 function __construct() { echo "Constructing new FooBar\n"; }
8 function __destruct() { echo "Destructing FooBar\n"; }
9 function current () { throw new Exception; }
10 function key () { return 0; }
11 function next () {}
12 function rewind () {}
13 function valid () { return true; }
16 function foo() {
25 function bar() {
/PHP-7.2/ext/session/tests/
H A Dbug79091.phpt11 public function close()
16 public function destroy($session_id)
21 public function gc($maxlifetime)
26 public function open($save_path, $session_name)
31 public function read($session_id)
36 public function write($session_id, $session_data)
41 public function create_sid()
46 public function updateTimestamp($key, $val)
51 public function validateId($key)
H A Dbug61728.phpt7 function output_html($ext) {
11 function open ($save_path, $session_name) {
15 function close() {
19 function read ($id) {
23 function write ($id, $sess_data) {
30 function destroy ($id) {
34 function gc ($maxlifetime) {
/PHP-7.2/Zend/tests/
H A Ddebug_backtrace_options.phpt6 function backtrace_print($opt = null)
15 function doit($a, $b, $how)
89 [function] => doit
103 [function] => doCall
153 [function] => doit
167 [function] => doCall
217 [function] => doit
231 [function] => doCall
277 [function] => doit
336 [function] => doit
[all …]
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 D002.phpt6 function test1() {
12 function test2($a) {
17 function test3($a, $b) {
42 static function test1($a) {
57 Warning: func_get_arg(): Argument 0 not passed to function in %s on line %d
60 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
67 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
71 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
77 Warning: func_get_arg(): Argument 2 not passed to function in %s on line %d
83 Warning: func_get_arg(): Argument 0 not passed to function in %s on line %d
[all …]
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 …]
/PHP-7.2/ext/standard/tests/general_functions/
H A Dis_callable_basic1.phpt2 Test is_callable() function : usage variations - defined functions
17 function check_iscallable( $functions ) {
33 /* function name with simple string */
34 function someFunction() {
37 /* function name with mixed string and integer */
38 function x123() {
41 /* function name as NULL */
42 function NULL() {
45 /* function name with boolean name */
46 function false() {
[all …]
/PHP-7.2/ext/spl/tests/
H A Dbug55701.phpt10 function testBaseClass($f) {
26 function testChildClass($f) {
42 testBaseClass( function() {
48 testBaseClass( function() {
54 testBaseClass( function() {
60 testBaseClass( function() {
66 testBaseClass( function() {
78 testBaseClass( function() {
84 testBaseClass( function() {
90 testBaseClass( function() {
[all …]
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.2/ext/reflection/tests/
H A DReflectionNamedType.phpt6 function testInternalTypes(?Traversable $traversable): ?string {
10 function testUserDefinedTypes(?Test $traversable): ?Test {
14 $function = new ReflectionFunction('testInternalTypes');
15 $type = $function->getParameters()[0]->getType();
16 $return = $function->getReturnType();
23 $function = new ReflectionFunction('testUserDefinedTypes');
24 $type = $function->getParameters()[0]->getType();
25 $return = $function->getReturnType();
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.2/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) {

Completed in 48 milliseconds

12345678910>>...248