Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/PHP-8.3/Zend/
H A Dzend_gc.c380 if (EXPECTED(GC_GET_PTR(root->ref) == ref)) { in gc_decompress()
388 if (GC_GET_PTR(root->ref) == ref) { in gc_decompress()
437 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
443 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
448 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
666 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root_when_full()
702 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root()
736 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_extra_root()
1410 buf->ref = GC_MAKE_GARBAGE(ref); in gc_add_garbage()
1632 ref = current->ref; in gc_collect_roots()
[all …]
H A Dzend_gc.h48 ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref);
83 #define GC_MAY_LEAK(ref) \ argument
84 ((GC_TYPE_INFO(ref) & \
89 if (EXPECTED(GC_TYPE_INFO(ref) == GC_REFERENCE)) { in gc_check_possible_root()
90 zval *zv = &((zend_reference*)ref)->val; in gc_check_possible_root()
95 ref = Z_COUNTED_P(zv); in gc_check_possible_root()
97 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root()
98 gc_possible_root(ref); in gc_check_possible_root()
104 ZEND_ASSERT(GC_TYPE_INFO(ref) != GC_REFERENCE); in gc_check_possible_root_no_ref()
105 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root_no_ref()
[all …]
H A Dzend_variables.c34 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()
/PHP-8.3/ext/dom/tests/
H A DDOMNamedNodeMap_string_references.phpt18 $ref =& $str;
19 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
22 $ref =& $str;
23 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
26 $ref =& $str;
27 var_dump(isset($attributes[$ref]), $attributes[$ref]);
30 $ref =& $str;
31 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
34 $ref =& $str;
38 $ref =& $int;
[all …]
H A Dentity_reference_stale_01.phpt16 $ref = $dom->documentElement->firstChild;
17 $decl = $ref->firstChild;
19 $nodes = $ref->childNodes;
24 var_dump($ref->firstChild);
25 var_dump($ref->lastChild);
26 var_dump($ref->textContent);
27 var_dump($ref->childNodes);
/PHP-8.3/ext/reflection/tests/
H A DReflectionGenerator_in_Generator.phpt8 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 D006.phpt18 $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');
64 $ref = new ReflectionClass('Test');
70 var_dump($ref->getStaticPropertyValue($name));
71 var_dump($ref->getStaticPropertyValue($name));
72 $ref->setStaticPropertyValue($name, 'updated');
[all …]
H A Dbug78895.phpt19 $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()));
/PHP-8.3/Zend/tests/attributes/
H A D011_inheritance.phpt24 $ref = new \ReflectionClass(C1::class);
25 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
26 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
28 $ref = new \ReflectionClass(C2::class);
29 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
30 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
32 $ref = new \ReflectionClass(C3::class);
33 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes()));
56 $ref = new \ReflectionClass(T1::class);
59 $ref = new \ReflectionClass(C4::class);
[all …]
H A D006_filter.phpt6 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
7 $attr = $ref->getAttributes(A3::class);
11 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
12 $attr = $ref->getAttributes(A2::class);
16 $ref = new \ReflectionFunction(#[A1] #[A2] #[A2] function () { });
17 $attr = $ref->getAttributes(A2::class);
33 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
38 $ref = new \ReflectionFunction(#[A1] #[A2] function () { });
55 $ref = new \ReflectionFunction(function () { });
58 $ref->getAttributes(A1::class, 3);
[all …]
H A D013_class_scope.phpt19 $ref = new \ReflectionClass(C1::class);
20 print_r($ref->getAttributes()[0]->getArguments());
22 print_r($ref->getProperty('a')->getAttributes()[0]->getArguments());
23 print_r($ref->getMethod('bar')->getAttributes()[0]->getArguments());
41 $ref = new \ReflectionClass(C2::class);
44 $ref = new \ReflectionClass(T1::class);
45 $attr = $ref->getMethod('foo')->getAttributes()[0];
70 $ref = new \ReflectionObject(C3::foo());
72 $args = $ref->getAttributes()[0]->getArguments();
73 var_dump($args[0] == $ref->getName(), $args[1]);
[all …]
H A D005_objects.phpt21 foreach ($ref->getAttributes() as $attr) {
29 $ref = new \ReflectionFunction(#[A1] function () { });
32 $ref->getAttributes()[0]->newInstance();
42 $ref->getAttributes()[0]->newInstance();
49 $ref = new \ReflectionFunction(#[A2] function () { });
52 $ref->getAttributes()[0]->newInstance();
65 $ref = new \ReflectionFunction(#[A3] function () { });
68 $ref->getAttributes()[0]->newInstance();
81 $ref->getAttributes()[0]->newInstance();
90 $ref = new \ReflectionFunction(#[A5] function () { });
[all …]
H A D003_ast_nodes.phpt14 $ref = new \ReflectionClass(C1::class);
15 $attr = $ref->getAttributes();
26 $ref = new \ReflectionClass(C2::class);
27 $attr = $ref->getAttributes();
44 $ref = new \ReflectionClass(C3::class);
45 $attr = $ref->getAttributes();
57 $ref = new \ReflectionClass(C4::class);
58 var_dump($ref->getAttributes()[0]->getArguments());
68 $ref = new \ReflectionFunction(#[C5(MissingClass::SOME_CONST)] function () { });
69 $attr = $ref->getAttributes();
H A D017_closure_scope.phpt21 $ref = new \ReflectionFunction(C1::foo());
22 print_r($ref->getAttributes()[0]->getArguments());
23 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments());
27 $ref = new \ReflectionFunction(C1::foo()->bindTo(null, Test1::class));
28 print_r($ref->getAttributes()[0]->getArguments());
29 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments());
/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_078.phpt12 $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 Dtyped_properties_reference_coercion_leak.phpt12 $ref = "";
13 $test->x =& $ref;
14 $test->y =& $ref;
16 $ref = $val;
17 var_dump($ref, $val);
/PHP-8.3/Zend/tests/
H A Dbug72598_2.phpt5 function ref(&$ref) {
6 var_dump($ref);
7 $ref = 1;
17 call_user_func_array('ref', $a);
23 Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
26 Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
H A Dqm_assign_ref_unwrap_leak.phpt6 function &ref() {
12 var_dump(true ? ref() : ref());
13 var_dump(ref() ?: ref());
14 var_dump(ref() ?? ref());
H A Dbug72598.phpt5 function ref(&$ref) {
6 var_dump($ref);
14 call_user_func_array('ref', $a);
20 Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
24 Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
H A Dgh12102_2.phpt7 global $ref;
9 var_dump($ref);
11 var_dump($ref);
14 /* Intentionally declared after test() to avoid compile-time checking of ref args. */
17 global $ref;
18 $ref = [];
19 return $ref;
H A Dcall_user_func_006.phpt8 function bar(&$ref) {
9 $ref = 24;
13 $ref =& $x;
18 $ref =& $y;
24 Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
27 Warning: Foo\bar(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
H A Dassign_obj_ref_return.phpt7 $obj->ref =& $ref;
8 $obj->val = $obj->ref = 42;
14 ["ref"]=>
/PHP-8.3/ext/standard/tests/class_object/
H A Dget_object_vars_variation_002.phpt9 $obj->ref = &$a;
15 $arr['ref'] = 'changed.ref';
24 ["ref"]=>
30 ["ref"]=>
31 &string(11) "changed.ref"
36 ["ref"]=>
37 &string(11) "changed.ref"
41 string(11) "changed.ref"
/PHP-8.3/Zend/tests/nullsafe_operator/
H A D016.phpt10 function set(&$ref, $value) {
11 $ref = $value;
32 set(): Argument #1 ($ref) could not be passed by reference
33 set(): Argument #1 ($ref) could not be passed by reference
34 set(): Argument #1 ($ref) could not be passed by reference
35 set(): Argument #1 ($ref) could not be passed by reference
/PHP-8.3/Zend/tests/weakrefs/
H A Dweakmap_multiple_weakrefs.phpt8 $ref = WeakReference::create($obj);
15 var_dump($ref === WeakReference::create($obj));
16 var_dump($ref->get(), $map, $map2, $map3);
18 var_dump($ref->get(), $map, $map2, $map3);
19 unset($ref, $map, $map2);
22 $ref = WeakReference::create($obj);
29 unset($ref, $map, $map2, $map3);

Completed in 29 milliseconds

12345678910>>...16