/php-src/Zend/ |
H A D | zend_gc.c | 390 if (EXPECTED(GC_GET_PTR(root->ref) == ref)) { in gc_decompress() 398 if (GC_GET_PTR(root->ref) == ref) { in gc_decompress() 447 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 453 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 458 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 686 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root_when_full() 722 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_possible_root() 756 newRoot->ref = ref; /* GC_ROOT tag is 0 */ in gc_extra_root() 1430 buf->ref = GC_MAKE_GARBAGE(ref); in gc_add_garbage() 1652 ref = current->ref; in gc_collect_roots() [all …]
|
H A D | zend_gc.h | 48 ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref); 84 #define GC_MAY_LEAK(ref) \ argument 85 ((GC_TYPE_INFO(ref) & \ 90 if (EXPECTED(GC_TYPE_INFO(ref) == GC_REFERENCE)) { in gc_check_possible_root() 91 zval *zv = &((zend_reference*)ref)->val; in gc_check_possible_root() 96 ref = Z_COUNTED_P(zv); in gc_check_possible_root() 98 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root() 99 gc_possible_root(ref); in gc_check_possible_root() 105 ZEND_ASSERT(GC_TYPE_INFO(ref) != GC_REFERENCE); in gc_check_possible_root_no_ref() 106 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root_no_ref() [all …]
|
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()
|
/php-src/ext/dom/tests/ |
H A D | DOMNamedNodeMap_string_references.phpt | 18 $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 D | entity_reference_stale_01.phpt | 16 $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-src/Zend/tests/attributes/ |
H A D | 011_inheritance.phpt | 24 $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 D | 006_filter.phpt | 6 $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 D | 013_class_scope.phpt | 19 $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 D | 005_objects.phpt | 21 foreach ($ref->getAttributes() as $attr) { 29 $ref = new \ReflectionFunction(#[A1] function () { }); 32 $ref->getAttributes()[0]->newInstance(); 39 $ref = new \ReflectionFunction(#[A1([])] function () { }); 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(); 77 $ref = new \ReflectionFunction(#[A5] function () { }); [all …]
|
H A D | 003_ast_nodes.phpt | 14 $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();
|
/php-src/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 | typed_properties_reference_coercion_leak.phpt | 12 $ref = ""; 13 $test->x =& $ref; 14 $test->y =& $ref; 16 $ref = $val; 17 var_dump($ref, $val);
|
/php-src/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'); 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 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_isClosed.phpt | 19 $ref = new ReflectionGenerator($gen); 20 var_dump($ref->getExecutingLine()); 21 var_dump($ref->isClosed()); 22 var_dump($ref->getExecutingLine()); 24 var_dump($ref->isClosed()); 26 var_dump($ref->getExecutingLine());
|
/php-src/Zend/tests/ |
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: 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 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.phpt | 5 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 D | gh12102_2.phpt | 7 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 D | call_user_func_006.phpt | 8 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 D | get_object_vars_variation_002.phpt | 9 $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 D | ir_gcm.c | 398 clones[0].ref = ref; in ir_split_partially_dead_node() 591 ref = *p; in ir_gcm() 605 ref = *p; in ir_gcm() 606 if (ref > 0 && _blocks[ref] == 0) { in ir_gcm() 681 ref = *p; in ir_gcm() 682 if (ref > 0 && _blocks[ref] == 0) { in ir_gcm() 1087 ref++; in ir_schedule() 1093 for (ref = IR_TRUE - 1, insn = &ctx->ir_base[ref]; ref > -ctx->consts_count; insn--, ref--) { in ir_schedule() 1246 if (ref) { in ir_schedule() 1247 insn->op1 = ref = _xlat[ref]; in ir_schedule() [all …]
|
H A D | ir_sccp.c | 18 #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 860 return ref; in ir_promote_d2f() 933 return ref; in ir_promote_f2d() 1032 return ref; in ir_promote_i2i() 1074 ir_ref ref; in ir_ext_ref() local 1078 if (ref) { in ir_ext_ref() [all …]
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 1938 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_undef_stub() 1959 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_free_op1_op2_stub() 1982 ref = ir_ZEXT_A(ref); in zend_jit_exception_handler_free_op2_stub() 2128 ref = ir_ZEXT_A(ref); in zend_jit_throw_cannot_pass_by_ref_stub() 2161 ref = ir_ZEXT_A(ref); in zend_jit_throw_cannot_pass_by_ref_stub() 2522 ref = ir_ZEXT_A(ref); in zend_jit_cannot_add_element_stub() 7801 ref = ir_TRUNC_U32(ref); in zend_jit_defined() 8408 ref = ir_SEXT_A(ref); 11577 ref = ir_ZEXT_L(ref); 16135 ref = ir_SWITCH(ref); [all …]
|