Home
last modified time | relevance | path

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

12345678910

/PHP-7.4/Zend/
H A Dzend_gc.c338 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 Dzend_gc.h34 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 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()
H A Dzend_execute.h63 #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 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');
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 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()));
H A DReflectionGenerator_basic.phpt26 $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 Dbug77882.phpt22 $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 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 Dreturn_separation.phpt8 $ref =& $array;
9 unset($ref);
15 $ref =& $int;
16 unset($ref);
H A Dtyped_properties_107.phpt7 public static $ref;
20 Test1::$ref =& $test2->str;
21 Test1::$ref = new Test3;
22 var_dump(Test1::$ref);
H A Dtyped_properties_068.phpt2 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 Dtyped_properties_106.phpt9 $ref =& $obj->prop;
11 $ref = [1];
17 $ref = $ary;
21 var_dump($ref);
/PHP-7.4/Zend/tests/
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_2.phpt5 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 Dbug72598.phpt5 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 Dbug73663.phpt5 function change(&$ref) {
6 $ref = range(1, 10);
10 $func = function (&$ref) {
11 return change($ref);
H A Dcall_user_func_006.phpt8 function bar(&$ref) {
9 $ref = 24;
13 $ref =& $x;
18 $ref =& $y;
/PHP-7.4/ext/standard/tests/class_object/
H A Dget_object_vars_variation_002.phpt15 $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 DreturnByReference.006.phpt21 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 DreturnByReference.007.phpt23 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 DreturnByReference.008.phpt24 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 Dsccp_029.phpt18 $ref = "y";
19 $test->x =& $ref;
20 $ref = 42;
21 var_dump($ref);
/PHP-7.4/ext/opcache/tests/
H A Doptimize_func_calls.phpt63 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

Completed in 37 milliseconds

12345678910