/PHP-7.2/Zend/ |
H A D | zend_gc.c | 132 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref() 138 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref() 143 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref() 310 newRoot->ref = ref; in gc_possible_root() 331 if (root->ref == ref) { in gc_find_additional_buffer() 429 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan_black() 540 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_mark_grey() 657 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan() 752 buf->ref = ref; in gc_add_garbage() 847 ref = Z_COUNTED(((zend_reference*)ref)->val); [all …]
|
H A D | zend_gc.h | 64 zend_refcounted *ref; member 124 ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref); 125 ZEND_API void ZEND_FASTCALL gc_remove_from_buffer(zend_refcounted *ref); 142 #define GC_MAY_LEAK(ref) \ argument 143 ((GC_TYPE_INFO(ref) & \ 147 static zend_always_inline void gc_check_possible_root(zend_refcounted *ref) 149 if (GC_TYPE(ref) == IS_REFERENCE) { 150 zval *zv = &((zend_reference*)ref)->val; 155 ref = Z_COUNTED_P(zv); 157 if (UNEXPECTED(GC_MAY_LEAK(ref))) { [all …]
|
H A D | zend_variables.c | 67 zend_reference *ref = (zend_reference*)p; in _zval_dtor_func() local 69 i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_RELAY_CC); in _zval_dtor_func() 70 efree_size(ref, sizeof(zend_reference)); in _zval_dtor_func() 93 zend_reference *ref = (zend_reference*)Z_REF_P(zvalue); in _zval_internal_dtor() local 95 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor() 96 free(ref); in _zval_internal_dtor() 124 zend_reference *ref = (zend_reference*)Z_REF_P(zvalue); in _zval_internal_dtor_for_ptr() local 126 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor_for_ptr() 127 free(ref); in _zval_internal_dtor_for_ptr()
|
/PHP-7.2/ext/reflection/tests/ |
H A D | ReflectionGenerator_in_Generator.phpt | 8 call($ref, $method, false); 11 var_dump($ref->$method()); 15 call($ref, "getTrace"); 16 call($ref, "getExecutingLine"); 17 call($ref, "getExecutingFile"); 18 call($ref, "getExecutingGenerator"); 19 call($ref, "getFunction"); 20 call($ref, "getThis"); 26 doCalls($ref); 28 yield from (function() use ($ref) { [all …]
|
H A D | 006.phpt | 18 $ref = new ReflectionClass('Test'); 24 var_dump($ref->getStaticPropertyValue($name)); 25 var_dump($ref->getStaticPropertyValue($name)); 26 $ref->setStaticPropertyValue($name, 'updated'); 27 var_dump($ref->getStaticPropertyValue($name)); 45 $ref = new ReflectionClass('Test'); 51 var_dump($ref->getStaticPropertyValue($name)); 64 $ref = new ReflectionClass('Test'); 70 var_dump($ref->getStaticPropertyValue($name)); 71 var_dump($ref->getStaticPropertyValue($name)); [all …]
|
H A D | ReflectionGenerator_basic.phpt | 26 $ref = new ReflectionGenerator($gen); 28 var_dump($ref->getTrace()); 29 var_dump($ref->getExecutingLine()); 30 var_dump($ref->getExecutingFile()); 31 var_dump($ref->getExecutingGenerator()); 32 var_dump($ref->getFunction()); 33 var_dump($ref->getThis());
|
H A D | bug77882.phpt | 22 $ref = new ReflectionClass('Test'); 23 $obj = $ref->newInstance(); 28 $ref = new ReflectionClass('Test'); 29 $obj = $ref->newInstanceArgs([]);
|
/PHP-7.2/Zend/tests/ |
H A D | qm_assign_ref_unwrap_leak.phpt | 6 function &ref() { 12 var_dump(true ? ref() : ref()); 13 var_dump(ref() ?: ref()); 14 var_dump(ref() ?? ref());
|
H A D | bug72598_2.phpt | 5 function ref(&$ref) { 6 var_dump($ref); 7 $ref = 1; 17 call_user_func_array('ref', $a); 23 Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598_2.php on line 14 26 Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598_2.php on line 14
|
H A D | bug72598.phpt | 5 function ref(&$ref) { 6 var_dump($ref); 14 call_user_func_array('ref', $a); 20 Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598.php on line 11 24 Warning: Parameter 1 to ref() expected to be a reference, value given in %sbug72598.php on line 11
|
H A D | bug73663.phpt | 5 function change(&$ref) { 6 $ref = range(1, 10); 10 $func = function (&$ref) { 11 return change($ref);
|
H A D | call_user_func_006.phpt | 8 function bar(&$ref) { 9 $ref = 24; 13 $ref =& $x; 18 $ref =& $y;
|
H A D | foreach_009.phpt | 7 foreach ($a as &$ref) { 9 echo "$ref-$ref2\n"; 10 if ($ref == 5 && $ref2 == 6) {
|
H A D | bug55305.phpt | 2 Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
|
/PHP-7.2/ext/standard/tests/class_object/ |
H A D | get_object_vars_variation_002.phpt | 15 $obj->ref = &$a; 21 $arr['ref'] = 'changed.ref'; 30 ["ref"]=> 36 ["ref"]=> 37 &string(11) "changed.ref" 42 ["ref"]=> 43 &string(11) "changed.ref" 47 string(11) "changed.ref"
|
/PHP-7.2/tests/lang/ |
H A D | returnByReference.006.phpt | 23 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 30 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th… 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 … 52 ---> 2. Via a return by ref function call, assign by reference the return value of a function that … 58 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
|
H A D | returnByReference.007.phpt | 25 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 32 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th… 39 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi… 48 ---> 1. Via a return by ref function call, assign by reference the return value of a function that … 54 ---> 2. Via a return by ref function call, assign by reference the return value of a function that … 60 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
|
H A D | returnByReference.008.phpt | 26 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 33 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th… 40 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 D | passByReference_005.phpt | 10 function r(&$ref) { 11 $ref = "Ref changed"; 20 function vr($val, &$ref) { 22 $ref = "Ref changed"; 25 function rv(&$ref, $val) { 27 $ref = "Ref changed"; 40 $ref = "Ref changed"; 47 function r(&$ref) { 48 $ref = "Ref changed"; 58 $ref = "Ref changed"; [all …]
|
/PHP-7.2/Zend/tests/type_declarations/ |
H A D | return_separation.phpt | 8 $ref =& $array; 9 unset($ref); 15 $ref =& $int; 16 unset($ref);
|
/PHP-7.2/ext/opcache/tests/ |
H A D | optimize_func_calls.phpt | 63 ref($obj->obj); 66 ref(retarray()[0]); 69 foo(a($a), $a, ref($b, $c), $obj); 78 ref("xxx"); 88 function ref(&$b) { 90 return "ref"; 120 [2] => ref
|
/PHP-7.2/ext/gd/libgd/ |
H A D | gdtest.c | 22 gdImagePtr im, ref, im2, im3; in main() local 47 ref = gdImageCreateFromPng (in); in main() 53 CompareImages ("Initial Versions", ref, im); in main() 73 CompareImages ("GD->PNG File->GD", ref, im2); in main() 82 CompareImages ("GD->PNG ptr->GD", ref, im2); in main() 117 CompareImages ("GD->GD2 ptr->GD", ref, im2); in main() 140 CompareImages ("GD->GD File->GD", ref, im2); in main() 152 CompareImages ("GD->GD ptr->GD", ref, im2); in main() 174 CompareImages ("GD Source", ref, im2); in main() 199 CompareImages ("GD Sink", ref, im2); in main() [all …]
|
/PHP-7.2/ext/standard/tests/serialize/ |
H A D | serialization_objects_004.phpt | 17 $ref = &$x; 21 $ref = &$x; 25 $ref = &$x; 29 $ref = &$x; 33 $ref = &$x; 37 $ref = &$x;
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | str_replace_array_refs.phpt | 8 $ref = &$data; 9 $b = &$ref['a']; 10 $numeric = &$ref['numeric'];
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_watch.h | 67 zend_refcounted *ref; member 73 zend_refcounted *ref; /* key to fetch the collision on parents */ member 79 zend_refcounted ref; member 86 phpdbg_watchpoint_t ref; member 103 zend_refcounted ref; member
|