/PHP-7.4/Zend/ |
H A D | zend_gc.c | 338 if (EXPECTED(GC_GET_PTR(root->ref) == ref)) { in gc_decompress() 346 if (GC_GET_PTR(root->ref) == ref) { in gc_decompress() 395 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 401 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 406 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 614 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root_when_full() 650 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root() 750 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan_black() 1147 buf->ref = GC_MAKE_GARBAGE(ref); in gc_add_garbage() 1314 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); 67 #define GC_MAY_LEAK(ref) \ argument 68 ((GC_TYPE_INFO(ref) & \ 72 static zend_always_inline void gc_check_possible_root(zend_refcounted *ref) 74 if (EXPECTED(GC_TYPE_INFO(ref) == IS_REFERENCE)) { 75 zval *zv = &((zend_reference*)ref)->val; 80 ref = Z_COUNTED_P(zv); 82 if (UNEXPECTED(GC_MAY_LEAK(ref))) { 83 gc_possible_root(ref);
|
H A D | zend_variables.c | 34 static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref); 35 static void ZEND_FASTCALL zend_empty_destroy(zend_reference *ref); 71 static void ZEND_FASTCALL zend_reference_destroy(zend_reference *ref) in zend_reference_destroy() argument 73 ZEND_ASSERT(!ZEND_REF_HAS_TYPE_SOURCES(ref)); in zend_reference_destroy() 74 i_zval_ptr_dtor(&ref->val); in zend_reference_destroy() 75 efree_size(ref, sizeof(zend_reference)); in zend_reference_destroy() 78 static void ZEND_FASTCALL zend_empty_destroy(zend_reference *ref) in zend_empty_destroy() argument 91 zend_refcounted *ref = Z_COUNTED_P(zval_ptr); in zval_internal_ptr_dtor() local 93 if (GC_DELREF(ref) == 0) { in zval_internal_ptr_dtor() 95 zend_string *str = (zend_string*)ref; in zval_internal_ptr_dtor()
|
H A D | zend_execute.h | 63 #define ZEND_REF_TYPE_SOURCES(ref) \ argument 64 (ref)->sources 66 #define ZEND_REF_HAS_TYPE_SOURCES(ref) \ argument 67 (ZEND_REF_TYPE_SOURCES(ref).ptr != NULL) 69 #define ZEND_REF_FIRST_SOURCE(ref) \ argument 72 : (ref)->sources.ptr) 92 if (UNEXPECTED(GC_DELREF(ref) == 0)) { in zend_copy_to_variable() 93 efree_size(ref, sizeof(zend_reference)); in zend_copy_to_variable() 102 zend_refcounted *ref = NULL; in zend_assign_to_variable() local 105 ref = Z_COUNTED_P(value); in zend_assign_to_variable() [all …]
|
/PHP-7.4/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 | bug78895.phpt | 19 $ref = new ReflectionClass(Foo::class); 20 var_dump(Reflection::getModifierNames($ref->getModifiers())); 21 $ref = new ReflectionClass(I::class); 22 var_dump(Reflection::getModifierNames($ref->getModifiers())); 23 $ref = new ReflectionClass(T::class); 24 var_dump(Reflection::getModifierNames($ref->getModifiers())); 25 $ref = new ReflectionClass(Bar::class); 26 var_dump(Reflection::getModifierNames($ref->getModifiers()));
|
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.4/Zend/tests/type_declarations/ |
H A D | typed_properties_078.phpt | 12 $ref = &$a->it; 13 $a->a = &$ref; 15 var_dump($ref); 18 $a->t = &$ref; 20 var_dump($ref); 23 var_dump($ref); 26 $ref = new ArrayIterator(); 32 $ref = null; 34 $a->t = &$ref; 37 $ref = []; [all …]
|
H A D | return_separation.phpt | 8 $ref =& $array; 9 unset($ref); 15 $ref =& $int; 16 unset($ref);
|
H A D | typed_properties_107.phpt | 7 public static $ref; 20 Test1::$ref =& $test2->str; 21 Test1::$ref = new Test3; 22 var_dump(Test1::$ref);
|
H A D | typed_properties_068.phpt | 2 Test typed static property by ref 5 function &ref($a = null) { 16 Foo::$i = &ref(5); 39 Foo::$s = &ref(5); 40 var_dump(Foo::$s, ref()); 42 Foo::$i = &ref("0"); 43 var_dump(Foo::$i, ref()); 46 Foo::$i = &ref("x"); 48 var_dump(Foo::$i, ref());
|
H A D | typed_properties_106.phpt | 9 $ref =& $obj->prop; 11 $ref = [1]; 17 $ref = $ary; 21 var_dump($ref);
|
/PHP-7.4/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;
|
/PHP-7.4/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.4/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 …
|
/PHP-7.4/ext/opcache/tests/opt/ |
H A D | sccp_029.phpt | 18 $ref = "y"; 19 $test->x =& $ref; 20 $ref = 42; 21 var_dump($ref);
|
/PHP-7.4/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
|