/PHP-8.0/tests/lang/ |
H A D | passByReference_010.phpt | 2 Passing assignments by reference 11 echo "\n\n---> Pass constant assignment by reference:\n"; 19 echo "\n\n---> Pass variable assignment by reference:\n"; 29 echo "\n\n---> Pass reference assignment by reference:\n"; 39 echo "\n\n---> Pass concat assignment by reference:\n"; 52 ---> Pass constant assignment by reference: 53 Exception: f(): Argument #1 ($a) cannot be passed by reference 56 ---> Pass variable assignment by reference: 57 Exception: f(): Argument #1 ($a) cannot be passed by reference 60 ---> Pass reference assignment by reference: [all …]
|
H A D | returnByReference.003.phpt | 2 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 D | returnByReference.004.phpt | 2 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 D | returnByReference.005.phpt | 2 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 D | returnByReference.009.phpt | 24 echo "\n---> 1. Return a variable by reference -> No warning:\n"; 28 echo "\n---> 2. Return a value by reference -> Warning:\n"; 33 ---> 1. Return a variable by reference -> No warning: 36 ---> 2. Return a value by reference -> Warning: 38 Notice: Only variable references should be returned by reference in %s on line %d
|
H A D | returnByReference.006.phpt | 2 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 D | passByReference_007.phpt | 2 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 D | returnByReference.008.phpt | 2 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 D | returnByReference.007.phpt | 2 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 D | passByReference_012.phpt | 2 Test pass by reference semantics 7 // "Only variables should be passed by reference in %s on line %d" 17 Notice: Only variables should be passed by reference in %s on line %d 20 Notice: Only variables should be passed by reference in %s on line %d
|
/PHP-8.0/ext/standard/tests/array/ |
H A D | array_sum_variation5.phpt | 2 Test array_sum() function : usage variations - array with reference variables as elements 6 * Testing array_sum() with 'input' having reference variables as elements 9 echo "*** Testing array_sum() : array with elements as reference ***\n"; 16 // input array containing elements as reference variables 30 *** Testing array_sum() : array with elements as reference ***
|
H A D | arsort_variation4.phpt | 2 Test arsort() function : usage variations - sort reference variables 6 * Testing arsort() by providing reference variable array with following flag values 21 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' value is default --\n"; 26 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n"; 31 echo "\n-- Testing arsort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n"; 41 -- Testing arsort() by supplying reference variable array, 'flag' value is default -- 52 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_REGULAR -- 63 -- Testing arsort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
|
H A D | asort_variation4.phpt | 2 Test asort() function : usage variations - sort reference variables 6 * Testing asort() by providing reference variable array with following flag values 21 echo "\n-- Testing asort() by supplying reference variable array, 'flag' value is default --\n"; 26 echo "\n-- Testing asort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n"; 31 echo "\n-- Testing asort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n"; 41 -- Testing asort() by supplying reference variable array, 'flag' value is default -- 52 -- Testing asort() by supplying reference variable array, 'flag' = SORT_REGULAR -- 63 -- Testing asort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
|
H A D | sort_variation4.phpt | 2 Test sort() function : usage variations - sort reference values 6 * Testing sort() by providing reference variable array with following flag values 21 echo "\n-- Testing sort() by supplying reference variable array, 'flag' value is default --\n"; 26 echo "\n-- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR --\n"; 31 echo "\n-- Testing sort() by supplying reference variable array, 'flag' = SORT_NUMERIC --\n"; 41 -- Testing sort() by supplying reference variable array, 'flag' value is default -- 52 -- Testing sort() by supplying reference variable array, 'flag' = SORT_REGULAR -- 63 -- Testing sort() by supplying reference variable array, 'flag' = SORT_NUMERIC --
|
H A D | array_unique_variation6.phpt | 2 Test array_unique() function : usage variations - array with reference variables 7 * array having reference variables as values. 10 echo "*** Testing array_unique() : array with reference variables for \$input argument ***\n"; 17 // input array containing elements as reference variables 32 *** Testing array_unique() : array with reference variables for $input argument ***
|
H A D | uasort_variation7.phpt | 8 * arguments passed by reference 31 echo "-- Anonymous 'cmp_function' with parameters passed by reference --\n"; 53 -- Anonymous 'cmp_function' with parameters passed by reference -- 55 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 57 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 59 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 61 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 63 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 65 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 67 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … [all …]
|
H A D | array_fill_keys_variation2.phpt | 5 /* Testing with reference types for the arguments */ 23 echo "\n-- Testing array_fill_keys() function with reference value --\n"; 27 echo "\n-- Testing array_fill_keys() function with reference keys --\n"; 35 echo "\n-- Testing array_fill_keys() function with reference array input --\n"; 46 -- Testing array_fill_keys() function with reference value -- 54 -- Testing array_fill_keys() function with reference keys -- 68 -- Testing array_fill_keys() function with reference array input --
|
H A D | usort_variation7.phpt | 31 echo "\n-- Anonymous 'cmp_function' with parameters passed by reference --\n"; 53 -- Anonymous 'cmp_function' with parameters passed by reference -- 55 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 57 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 59 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 61 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 63 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 65 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line … 67 Warning: {closure}(): Argument #1 ($value1) must be passed by reference, value given in %s on line … 69 Warning: {closure}(): Argument #2 ($value2) must be passed by reference, value given in %s on line …
|
H A D | uasort_variation10.phpt | 2 Test uasort() function : usage variations - sort array with reference variables 6 * Testing uasort() with 'array_arg' containing different reference variables 23 echo "*** Testing uasort() : 'array_arg' with elements as reference ***\n"; 31 // array_args an array containing elements with reference variables 47 *** Testing uasort() : 'array_arg' with elements as reference ***
|
/PHP-8.0/ext/spl/tests/ |
H A D | heap_009.phpt | 2 SPL: SplHeap and friends, throw: An iterator cannot be used with foreach by reference 49 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
|
/PHP-8.0/Zend/tests/ |
H A D | call_user_func_008.phpt | 28 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 30 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d 35 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 37 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d 42 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 44 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d 49 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 51 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d
|
H A D | bug67856.phpt | 11 Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d 13 Warning: {closure}(): Argument #2 ($b) must be passed by reference, value given in %s on line %d 15 Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d 17 Warning: {closure}(): Argument #2 ($b) must be passed by reference, value given in %s on line %d 19 Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d 21 Warning: {closure}(): Argument #2 ($b) must be passed by reference, value given in %s on line %d
|
H A D | assign_ref_func_leak.phpt | 2 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
|
/PHP-8.0/ext/reflection/tests/ |
H A D | ReflectionParameter_canBePassedByValue.phpt | 12 echo "Is passed by reference: ", $parameter->isPassedByReference()?"yes":"no", "\n"; 41 Is passed by reference: yes 45 Is passed by reference: yes 51 Is passed by reference: yes 55 Is passed by reference: no 61 Is passed by reference: yes 65 Is passed by reference: no
|
H A D | ReflectionParameter_002.phpt | 26 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
|