Home
last modified time | relevance | path

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

12345678910>>...15

/php-src/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-src/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 …]
/php-src/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-src/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-src/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-src/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
/php-src/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-src/ext/opcache/jit/ir/
H A Dir_gcm.c376 clones[0].ref = ref; in ir_split_partially_dead_node()
527 ref = *p; in ir_gcm()
541 ref = *p; in ir_gcm()
542 if (ref > 0 && _blocks[ref] == 0) { in ir_gcm()
617 ref = *p; in ir_gcm()
618 if (ref > 0 && _blocks[ref] == 0) { in ir_gcm()
1023 ref++; in ir_schedule()
1029 for (ref = IR_TRUE - 1, insn = &ctx->ir_base[ref]; ref > -ctx->consts_count; insn--, ref--) { in ir_schedule()
1151 if (ref) { in ir_schedule()
1152 insn->op1 = ref = _xlat[ref]; in ir_schedule()
[all …]
H A Dir_sccp.c18 #define IR_MAKE_TOP(ref) do {IR_ASSERT(ref > 0); _values[ref].optx = IR_TOP;} while (0) argument
19 #define IR_MAKE_BOTTOM(ref) do {IR_ASSERT(ref > 0); _values[ref].optx = IR_BOTTOM;} while (0) argument
21 #define IR_IS_TOP(ref) (ref >= 0 && _values[ref].optx == IR_TOP) argument
22 #define IR_IS_BOTTOM(ref) (ref >= 0 && _values[ref].optx == IR_BOTTOM) argument
23 #define IR_IS_FEASIBLE(ref) (ref >= 0 && _values[ref].optx != IR_TOP) argument
785 return ref; in ir_promote_d2f()
799 return ref; in ir_promote_d2f()
805 return ref; in ir_promote_d2f()
843 return ref; in ir_promote_f2d()
868 return ref; in ir_promote_f2d()
[all …]
/php-src/ext/opcache/jit/
H A Dzend_jit_ir.c1912 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_undef_stub()
1933 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_free_op1_op2_stub()
1956 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_free_op2_stub()
2102 ref = ir_ZEXT_A(ref); in zend_jit_throw_cannot_pass_by_ref_stub()
2135 ref = ir_ZEXT_A(ref); in zend_jit_throw_cannot_pass_by_ref_stub()
2498 ref = ir_ZEXT_A(ref); in zend_jit_cannot_add_element_stub()
7595 ref = ir_TRUNC_U32(ref); in zend_jit_defined()
8191 ref = ir_SEXT_A(ref);
11158 ref = ir_ZEXT_L(ref);
11470 ref = ir_ZEXT_L(ref);
[all …]
/php-src/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

Completed in 106 milliseconds

12345678910>>...15