/PHP-7.3/Zend/ |
H A D | zend_gc.c | 331 if (EXPECTED(GC_GET_PTR(root->ref) == ref)) { in gc_decompress() 339 if (GC_GET_PTR(root->ref) == ref) { in gc_decompress() 388 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 394 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 399 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 606 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root_when_full() 642 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root() 744 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan_black() 1150 buf->ref = GC_MAKE_GARBAGE(ref); in gc_add_garbage() 1333 ref = current->ref; in gc_collect_roots() [all …]
|
H A D | zend_gc.h | 34 ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref); 35 ZEND_API void ZEND_FASTCALL gc_remove_from_buffer(zend_refcounted *ref); 63 #define GC_MAY_LEAK(ref) \ argument 64 ((GC_TYPE_INFO(ref) & \ 68 static zend_always_inline void gc_check_possible_root(zend_refcounted *ref) 70 if (GC_TYPE_INFO(ref) == IS_REFERENCE) { 71 zval *zv = &((zend_reference*)ref)->val; 76 ref = Z_COUNTED_P(zv); 78 if (UNEXPECTED(GC_MAY_LEAK(ref))) { 79 gc_possible_root(ref);
|
H A D | zend_variables.c | 30 static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref); 31 static void ZEND_FASTCALL zend_empty_destroy(zend_reference *ref); 77 static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref) in zend_reference_destroy() argument 79 i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_CC); in zend_reference_destroy() 80 efree_size(ref, sizeof(zend_reference)); in zend_reference_destroy() 83 static void ZEND_FASTCALL zend_empty_destroy(zend_reference *ref) in zend_empty_destroy() argument 118 zend_refcounted *ref = Z_COUNTED_P(zval_ptr); in zval_internal_ptr_dtor() local 120 if (GC_DELREF(ref) == 0) { in zval_internal_ptr_dtor() 122 zend_string *str = (zend_string*)ref; in zval_internal_ptr_dtor()
|
/PHP-7.3/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([]);
|
H A D | bug79062.phpt | 20 $ref = new \ReflectionClass(BugReportMailrcConfigTests::class); 21 $s1 = $ref->getProperty('s1'); 24 $s2 = $ref->getProperty('s2'); 27 $s3 = $ref->getProperty('s3');
|
/PHP-7.3/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.3/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.3/tests/lang/ |
H A D | returnByReference.006.phpt | 21 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 28 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th… 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 … 50 ---> 2. Via a return by ref function call, assign by reference the return value of a function that … 56 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
|
H A D | returnByReference.007.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.008.phpt | 24 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi… 31 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th… 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 … 53 ---> 2. Via a return by ref function call, assign by reference the return value of a function that … 59 ---> 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.3/Zend/tests/type_declarations/ |
H A D | return_separation.phpt | 8 $ref =& $array; 9 unset($ref); 15 $ref =& $int; 16 unset($ref);
|
/PHP-7.3/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.3/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.3/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.3/ext/standard/tests/strings/ |
H A D | str_replace_array_refs.phpt | 8 $ref = &$data; 9 $b = &$ref['a']; 10 $numeric = &$ref['numeric'];
|