Home
last modified time | relevance | path

Searched refs:function (Results 51 – 75 of 5607) sorted by relevance

12345678910>>...225

/PHP-5.5/tests/lang/
H A DreturnByReference.007.phpt8 static function returnConstantByValue() {
12 static function &returnConstantByRef() {
16 static function &returnVariableByRef() {
20 static function &returnFunctionCallByRef($functionToCall) {
25 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
32 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi…
39 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
49 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
55 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
61 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DreturnByReference.008.phpt8 function returnConstantByValue() {
12 function &returnConstantByRef() {
16 function &returnVariableByRef() {
20 function &returnFunctionCallByRef($functionToCall) {
26 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
33 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi…
40 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
50 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
56 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
62 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
/PHP-5.5/Zend/tests/
H A Dfunction_exists_basic.phpt2 function_exists function : basic functionality
12 echo "Internal function: ";
15 echo "User defined function: ";
16 function f() {}
22 echo "Non existent function: ";
27 static function f() {}
34 Internal function: bool(true)
35 User defined function: bool(true)
37 Non existent function: bool(false)
H A Dzend2.php.txt9 function increment_and_print()
20 function Instance()
41 function draw()
48 function draw()
124 function Name($_name)
129 function display()
142 function getName()
196 function MyCloneable()
201 function __clone()
261 function __construct()
[all …]
H A Dclosure_bug66622.phpt7 static function name() { return 'A'; }
8 function foo() {
9 $fn = function() { return static::name(); };
12 function bar() {
13 $fn = static function() { return static::name(); };
16 static function baz() {
17 $fn = function() { return static::name(); };
22 static function name() { return 'B'; }
25 function test() {
H A Dbug60573.phpt7 public function setSelf(self $s) { }
13 public function setSelf(parent $s) { }
19 public function setSelf(Foo2 $s) { }
25 public function setSelf(parent $s) { }
34 public function setSelf(parent $s) { }
40 public function setSelf(Base $s) { }
46 public function setSelf(self $s) { }
52 public function setSelf(self $s) { }
58 public function setSelf(parent $s) { }
64 public function setSelf(parent $s) { }
[all …]
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 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) {
34 static function test1($a) {
49 Warning: func_get_arg(): Argument 0 not passed to function in %s on line %d
52 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
59 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
63 Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
68 Warning: func_get_arg(): Argument 0 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
[all …]
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-5.5/ext/reflection/tests/
H A DReflectionClass_getModifierNames_basic.phpt14 function __construct() {}
15 function __destruct() {}
16 private function a() {}
17 private static function b() {}
18 protected function c() {}
19 protected static function d() {}
20 public function e() {}
21 public static function f() {}
22 final function g() {}
23 function h() {}
[all …]
/PHP-5.5/ext/standard/tests/array/
H A Darray_walk_error1.phpt2 Test array_walk() function : error conditions
6 * Description: Apply a user function to every member of an array
17 function callback ($value, $key, $user_data) {
23 echo "-- Testing array_walk() function with zero arguments --\n";
26 echo "-- Testing array_walk() function with one argument --\n";
29 echo "-- Testing array_walk() function with non existent callback function --\n";
36 -- Testing array_walk() function with zero arguments --
40 -- Testing array_walk() function with one argument --
44 -- Testing array_walk() function with non existent callback function --
46 …alk() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid fun…
H A Darray_walk_recursive_error1.phpt2 Test array_walk_recursive() function : error conditions
6 * Description: Apply a user function to every member of an array
17 function callback ($value, $key, $user_data) {
23 echo "-- Testing array_walk_recursive() function with zero arguments --\n";
26 echo "-- Testing array_walk_recursive() function with one argument --\n";
30 echo "-- Testing array_walk_recursive() function with non existent callback function --\n";
37 -- Testing array_walk_recursive() function with zero arguments --
41 -- Testing array_walk_recursive() function with one argument --
45 -- Testing array_walk_recursive() function with non existent callback function --
47 …ive() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid fun…
H A Dshuffle_basic1.phpt2 Test shuffle() function : basic functionality - array with default keys
14 * before and after shuffle() function is applied on it
25 /* Testing shuffle() function with array of integers */
31 // applying shuffle() function on the input array of integers
32 echo "\n-- return value from shuffle() function --\n";
38 /* Testing shuffle() function with array of strings */
45 echo "\n-- return value from shuffle() function --\n";
78 -- return value from shuffle() function --
81 -- resultant array after shuffle() function is applied --
125 -- return value from shuffle() function --
[all …]
H A Darray_product_variation3.phpt2 Test array_product() function : variation
13 echo "\n-- Testing array_product() function with one negative number --\n";
16 echo "\n-- Testing array_product() function with two negative numbers --\n";
19 echo "\n-- Testing array_product() function with three negative numbers --\n";
22 echo "\n-- Testing array_product() function with negative floats --\n";
25 echo "\n-- Testing array_product() function with negative floats --\n";
34 -- Testing array_product() function with one negative number --
37 -- Testing array_product() function with two negative numbers --
40 -- Testing array_product() function with three negative numbers --
43 -- Testing array_product() function with negative floats --
[all …]
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_udiff_variation5.phpt2 Test array_udiff() function : usage variation
13 // Initialise function arguments not being substituted (if any)
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) {
40 -- comparison function with an incorrect return value --
46 -- comparison function taking too many parameters --
[all …]
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_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…
/PHP-5.5/ext/spl/tests/
H A Diterator_068.phpt7 function foo() {
10 function rewind() {}
11 function valid() {}
12 function current() {}
13 function key() {}
14 function next() {}
18 function __destruct() {
/PHP-5.5/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-5.5/ext/standard/tests/strings/
H A Dhebrev_variation2.phpt19 public function __toString() {
97 .The function tries to avoid breaking words
112 .The function tries to avoid breaking words
116 .The function tries to avoid breaking words
120 .The function tries to avoid breaking words
148 function
155 function
179 .The function tries to avoid breaking words
206 .The function tries to avoid breaking words
221 .The function tries to avoid breaking words
[all …]
/PHP-5.5/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) {

Completed in 24 milliseconds

12345678910>>...225