Home
last modified time | relevance | path

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

12345678910>>...22

/php-src/tests/lang/
H A DpassByReference_010.phpt2 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) could not be passed by reference
56 ---> Pass variable assignment by reference:
57 Exception: f(): Argument #1 ($a) could not be passed by reference
60 ---> 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";
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 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 …
/php-src/ext/standard/tests/general_functions/
H A Ddebug_zval_dump_refs.phpt21 reference refcount(2) {
27 reference refcount(3) {
31 reference refcount(3) {
37 reference refcount(2) {
43 reference refcount(1) {
/php-src/ext/standard/tests/array/
H A Darray_sum_variation5.phpt2 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 Darray_unique_variation6.phpt2 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 Darray_fill_keys_variation2.phpt5 /* 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 --
/php-src/ext/standard/tests/array/sort/
H A Darsort_variation4.phpt2 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 Dasort_variation4.phpt2 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 Dsort_variation4.phpt2 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 Duasort_variation7.phpt8 * 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:%s:%d}(): Argument #1 ($value1) must be passed by reference, value given in %s on…
57 Warning: {closure:%s:%d}(): Argument #2 ($value2) must be passed by reference, value given in %s on…
59 Warning: {closure:%s:%d}(): Argument #1 ($value1) must be passed by reference, value given in %s on…
61 Warning: {closure:%s:%d}(): Argument #2 ($value2) must be passed by reference, value given in %s on…
63 Warning: {closure:%s:%d}(): Argument #1 ($value1) must be passed by reference, value given in %s on…
65 Warning: {closure:%s:%d}(): Argument #2 ($value2) must be passed by reference, value given in %s on…
67 Warning: {closure:%s:%d}(): Argument #1 ($value1) must be passed by reference, value given in %s on…
[all …]
/php-src/ext/spl/tests/
H A Dheap_009.phpt2 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-src/Zend/tests/
H A Dcall_user_func_008.phpt28 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 Dbug67856.phpt11 Warning: {closure:%s:%d}(): Argument #1 ($a) must be passed by reference, value given in %s on line…
13 Warning: {closure:%s:%d}(): Argument #2 ($b) must be passed by reference, value given in %s on line…
15 Warning: {closure:%s:%d}(): Argument #1 ($a) must be passed by reference, value given in %s on line…
17 Warning: {closure:%s:%d}(): Argument #2 ($b) must be passed by reference, value given in %s on line…
19 Warning: {closure:%s:%d}(): Argument #1 ($a) must be passed by reference, value given in %s on line…
21 Warning: {closure:%s:%d}(): Argument #2 ($b) must be passed by reference, value given in %s on line…
/php-src/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
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 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-src/ext/pgsql/tests/
H A Dgh13354.phpt2 GH-13354 (null-by-reference handling in pg_execute, pg_send_query_params, pg_send_execute)
28 echo "pg_execute, null value by reference: " . pg_fetch_result($res, 0, 0) . "\n";
38 echo "pg_query_params, null value by reference: " . pg_fetch_result($res, 0, 0) . "\n";
52 echo "pg_send_query_params, null value by reference: " . pg_fetch_result($res, 0, 0) . "\n";
66 echo "pg_send_execute, null value by reference: " . pg_fetch_result($res, 0, 0) . "\n";
74 pg_execute, null value by reference: t
76 pg_query_params, null value by reference: t
78 pg_send_query_params, null value by reference: t
80 pg_send_execute, null value by reference: t
/php-src/docs/source/core/data-structures/
H A Dreference-counting.rst14 a reference count to each allocated value, often abbreviated as refcount or RC. Whenever a reference
17 the reference count. Once the reference count reaches zero, we know the value is no longer needed
84 - Returns the reference count.
88 - Increases the reference count.
96 - Decreases the reference count and frees the value if the reference count reaches zero.
112 - Returns the reference count.
124 - Decreases the reference count and frees the value if the reference count reaches zero.
134 PHP has value and reference types. Reference types are types that are shared through a reference, a
155 Immutable reference counted types
158 Sometimes, even a reference counted type is not reference counted. When PHP runs in a multi-process
[all …]
/php-src/ext/dom/
H A Dentityreference.c74 xmlEntityPtr dom_entity_reference_fetch_and_sync_declaration(xmlNodePtr reference) in dom_entity_reference_fetch_and_sync_declaration() argument
76 xmlEntityPtr entity = xmlGetDocEntity(reference->doc, reference->name); in dom_entity_reference_fetch_and_sync_declaration()
77 reference->children = (xmlNodePtr) entity; in dom_entity_reference_fetch_and_sync_declaration()
78 reference->last = (xmlNodePtr) entity; in dom_entity_reference_fetch_and_sync_declaration()
79 reference->content = entity ? entity->content : NULL; in dom_entity_reference_fetch_and_sync_declaration()

Completed in 27 milliseconds

12345678910>>...22