Home
last modified time | relevance | path

Searched refs:reference (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/PHP-7.4/tests/lang/
H A DpassByReference_010.phpt2 Passing assignments by reference
11 echo "\n\n---> Pass constant assignment by reference:\n";
15 echo "\n\n---> Pass variable assignment by reference:\n";
21 echo "\n\n---> Pass reference assignment by reference:\n";
27 echo "\n\n---> Pass concat assignment by reference:\n";
36 ---> Pass constant assignment by reference:
38 Notice: Only variables should be passed by reference in %s on line 9
43 ---> Pass variable assignment by reference:
45 Notice: Only variables should be passed by reference in %s on line 15
50 ---> Pass reference assignment by reference:
[all …]
H A DreturnByReference.003.phpt2 Returning a reference from a function
17 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
24 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
31 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
40 ---> 1. Trying to assign by reference the return value of a function that returns by value:
42 Notice: Only variables should be assigned by reference in %s on line 17
46 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
48 Notice: Only variable references should be returned by reference in %s on line 7
52 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
H A DreturnByReference.004.phpt2 Returning a reference from a static method
19 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
26 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
33 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
42 ---> 1. Trying to assign by reference the return value of a function that returns by value:
44 Notice: Only variables should be assigned by reference in %s on line 19
48 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
50 Notice: Only variable references should be returned by reference in %s on line 8
54 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
H A DreturnByReference.005.phpt2 Returning a reference from a method
20 echo "\n---> 1. Trying to assign by reference the return value of a function that returns by value:…
27 echo "\n---> 2. Trying to assign by reference the return value of a function that returns a constan…
34 echo "\n---> 3. Trying to assign by reference the return value of a function that returns by ref:\n…
43 ---> 1. Trying to assign by reference the return value of a function that returns by value:
45 Notice: Only variables should be assigned by reference in %s on line 20
49 ---> 2. Trying to assign by reference the return value of a function that returns a constant by ref:
51 Notice: Only variable references should be returned by reference in %s on line 8
55 ---> 3. Trying to assign by reference the return value of a function that returns by ref:
H A DreturnByReference.009.phpt24 echo "\n---> 1. Return a variable by reference -> No warning:\n";
28 echo "\n---> 2. Return a value by reference -> Warning:\n";
32 ---> 1. Return a variable by reference -> No warning:
35 ---> 2. Return a value by reference -> Warning:
37 Notice: Only variable references should be returned by reference in %s on line %d
H A DreturnByReference.006.phpt2 Returning a reference from a function via another function
21 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
28 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi…
35 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
44 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
46 Notice: Only variable references should be returned by reference in %s on line 15
50 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
52 Notice: Only variable references should be returned by reference in %s on line 7
56 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DpassByReference_007.phpt2 Pass function and method calls by reference and by value.
50 echo "Pass a function call that returns a reference:\n";
61 echo "Pass a static method call that returns a reference:\n";
73 echo "Pass a method call that returns a reference:\n";
82 Notice: Only variables should be passed by reference in %s on line 44
85 Pass a function call that returns a reference:
91 Notice: Only variables should be passed by reference in %s on line 55
94 Pass a static method call that returns a reference:
100 Notice: Only variables should be passed by reference in %s on line 67
103 Pass a method call that returns a reference:
H A DreturnByReference.007.phpt2 Returning a reference from a static method via another static method
23 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
30 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi…
37 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
46 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
48 Notice: Only variable references should be returned by reference in %s on line 16
52 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
54 Notice: Only variable references should be returned by reference in %s on line 8
58 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DreturnByReference.008.phpt2 Returning a reference from a non-static method via another non-static method
24 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
31 echo "\n---> 2. Via a return by ref function call, assign by reference the return value of a functi…
38 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
47 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
49 Notice: Only variable references should be returned by reference in %s on line 16
53 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
55 Notice: Only variable references should be returned by reference in %s on line 8
59 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DpassByReference_012.phpt2 Test pass by reference semantics
7 // "Only variables should be passed by reference in %s on line %d"
18 Notice: Only variables should be passed by reference in %s on line %d
21 Notice: Only variables should be passed by reference in %s on line %d
/PHP-7.4/ext/reflection/tests/
H A DReflectionParameter_canBePassedByValue.phpt12 echo "Is passed by reference: ", $parameter->isPassedByReference()?"yes":"no", "\n";
41 Is passed by reference: yes
45 Is passed by reference: yes
49 Is passed by reference: yes
53 Is passed by reference: yes
59 Is passed by reference: yes
63 Is passed by reference: no
69 Is passed by reference: yes
73 Is passed by reference: no
H A DReflectionParameter_002.phpt26 echo "This param is passed by reference\n";
28 echo "This param is not passed by reference\n";
41 echo "This param is passed by reference\n";
43 echo "This param is not passed by reference\n";
58 This param is passed by reference
64 This param is not passed by reference
72 This param is not passed by reference
78 This param is passed by reference
/PHP-7.4/ext/spl/tests/
H A Dheap_009.phpt2 SPL: SplHeap and friends, throw: An iterator cannot be used with foreach by reference
50 An iterator cannot be used with foreach by reference
51 An iterator cannot be used with foreach by reference
52 An iterator cannot be used with foreach by reference
53 An iterator cannot be used with foreach by reference
54 An iterator cannot be used with foreach by reference
55 An iterator cannot be used with foreach by reference
/PHP-7.4/ext/standard/tests/array/
H A Darray_sum_variation5.phpt2 Test array_sum() function : usage variations - array with reference variables as elements
11 * Testing array_sum() with 'input' having reference variables as elements
14 echo "*** Testing array_sum() : array with elements as reference ***\n";
21 // input array containing elements as reference variables
35 *** Testing array_sum() : array with elements as reference ***
H A Darray_unique_variation6.phpt2 Test array_unique() function : usage variations - array with reference variables
12 * array having reference variables as values.
15 echo "*** Testing array_unique() : array with reference variables for \$input argument ***\n";
22 // input array containing elements as reference variables
37 *** Testing array_unique() : array with reference variables for $input argument ***
H A Darsort_variation4.phpt2 Test arsort() function : usage variations - sort reference variables
12 * Testing arsort() by providing reference variable array with following flag values
27 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' value is defualt --\n";
32 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n";
37 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n";
47 -- Testing arsort() by supplying reference variable array, 'flag' value is defualt --
58 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --
69 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
H A Dasort_variation4.phpt2 Test asort() function : usage variations - sort reference variables
12 * Testing asort() by providing reference variable array with following flag values
27 echo "\n-- Testing asort() by supplying reference variable array, 'flag' value is defualt --\n";
32 echo "\n-- Testing asort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n";
37 echo "\n-- Testing asort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n";
47 -- Testing asort() by supplying reference variable array, 'flag' value is defualt --
58 -- Testing asort() by supplying reference variable array, 'flag' = SORT_REGULAR --
69 -- Testing asort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
H A Dsort_variation4.phpt2 Test sort() function : usage variations - sort reference values
12 * Testing sort() by providing reference variable array with following flag values
27 echo "\n-- Testing sort() by supplying reference variable array, 'flag' value is defualt --\n";
32 echo "\n-- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n";
37 echo "\n-- Testing sort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n";
47 -- Testing sort() by supplying reference variable array, 'flag' value is defualt --
58 -- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --
69 -- Testing sort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
H A Darray_fill_keys_variation2.phpt11 /* Testing with reference types for the arguments */
29 echo "\n-- Testing array_fill_keys() function with reference value --\n";
33 echo "\n-- Testing array_fill_keys() function with reference keys --\n";
41 echo "\n-- Testing array_fill_keys() function with reference array input --\n";
52 -- Testing array_fill_keys() function with reference value --
60 -- Testing array_fill_keys() function with reference keys --
74 -- Testing array_fill_keys() function with reference array input --
H A Darray_merge_recursive_variation7.phpt2 Test array_merge_recursive() function : usage variations - array with reference variables
12 * array having reference variables.
15 echo "*** Testing array_merge_recursive() : array with reference variables for \$arr1 argument ***\…
22 // input array containing elements as reference variables
44 *** Testing array_merge_recursive() : array with reference variables for $arr1 argument ***
/PHP-7.4/Zend/tests/
H A Dcall_user_func_008.phpt28 Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
30 Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
35 Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
37 Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
42 Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
44 Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
49 Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d
51 Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d
H A Dassign_ref_func_leak.phpt2 Assigning the result of a non-reference function by-reference should not leak
15 Notice: Only variables should be assigned by reference in %s on line %d
H A Dcall_user_func_009.phpt2 call_user_func() behavior when passing literal to reference parameter
13 Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
16 Warning: Parameter 1 to sort() expected to be a reference, value given in %s on line %d
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_references.phpt34 print "reference, one level...\n";
119 print "reference, simple object w reference...\n";
136 print "reference, simple object w reference, change after bind...\n";
252 reference, one level...
257 reference, two levels...
264 reference, $GLOBALS...
269 reference, same target...
272 reference, simple object...
275 reference, simple object w reference...
278 reference, simple object w reference, change after bind...
[all …]
/PHP-7.4/Zend/tests/arg_unpack/
H A Dtraversable_with_by_ref_parameters.phpt2 Traversables cannot be unpacked into by-reference parameters
27 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
29 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
31 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…

Completed in 36 milliseconds

12345678910>>...16