Home
last modified time | relevance | path

Searched refs:ref (Results 51 – 75 of 376) sorted by relevance

12345678910>>...16

/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_083.phpt42 $ref = &Foo::$a;
43 $ref[] = 3;
44 var_dump($ref);
46 $ref = &$a->p;
48 $ref[] = "bar";
50 var_dump($ref);
53 $ref["baz"][] = "bar"; // indirect assign
55 var_dump($ref);
H A Dtyped_properties_096.phpt13 $ref =& $test->prop2;
15 $test->prop =& $ref;
28 $ref =& $test->prop2;
29 $test->prop =& $ref;
H A Dtyped_properties_023.phpt5 function &ref() {
29 var_dump(Foo::$i = ref());
31 var_dump(Foo::$s = ref());
33 var_dump(ref());
H A Dtyped_properties_092.phpt6 function &ref(&$foo) {
16 $ref =& $array;
22 $this->prop2 = ref($str);
H A Dtyped_properties_093.phpt2 Typed property assignment by ref with variable name
17 $ref = "foobar";
19 $test->$name =& $ref;
H A Dtyped_properties_108.phpt13 $ref =& $test->i;
17 } catch (Exception $ref) {
25 $ref =& $test->s;
29 } catch (Exception $ref) {
/PHP-8.3/Zend/tests/nullsafe_operator/
H A D031.phpt7 $ref =& $val;
8 var_dump($ref?->foo);
11 var_dump($ref?->foo);
/PHP-8.3/ext/ffi/tests/
H A Dweak_reference_001.phpt10 $ref = \WeakReference::create($ffi);
11 var_dump($ref->get() === $ffi);
13 var_dump($ref->get() === null);
H A Dweak_reference_003.phpt10 $ref = \WeakReference::create($ctype);
11 var_dump($ref->get() === $ctype);
13 var_dump($ref->get() === null);
/PHP-8.3/Zend/tests/
H A Dforeach_009.phpt7 foreach ($a as &$ref) {
9 echo "$ref-$ref2\n";
10 if ($ref == 5 && $ref2 == 6) {
H A Dbug55305.phpt2 Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
H A Dbug73663_2.phpt5 function change(&$ref) {
6 $ref = range(1, 10);
15 Fatal error: Uncaught Error: change(): Argument #1 ($ref) could not be passed by reference in %s:%d
H A Dcall_user_func_007.phpt6 function foo(&$ref) { $ref = 24; }
18 Warning: foo(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
H A Dbug74164.phpt2 Bug #74164 (PHP hangs when an invalid value is dynamically passed to typehinted by-ref arg)
12 call_user_func(function (array &$ref) {var_dump("xxx");}, 'not_an_array_variable');
15 Fatal error: Uncaught Exception: Foo\{closure}(): Argument #1 ($ref) must be passed by reference, v…
/PHP-8.3/ext/standard/tests/strings/
H A Dstr_replace_array_refs.phpt8 $ref = &$data;
9 $b = &$ref['a'];
10 $numeric = &$ref['numeric'];
/PHP-8.3/ext/xml/tests/
H A Dbug30875.phpt10 <!ENTITY ref "ent">
12 <elt att="&ref;">a&ref;</elt>
/PHP-8.3/ext/zend_test/tests/
H A Dattribute-promotion-parameter-only.phpt15 $ref = new ReflectionClass(AttrTest::class);
16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
22 $attr = $ref->getProperty('param')->getAttributes();
H A Dattribute-promotion-property-only.phpt15 $ref = new ReflectionClass(AttrTest::class);
16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
20 $attr = $ref->getProperty('param')->getAttributes();
/PHP-8.3/Zend/
H A Dzend_variables.h42 zend_refcounted *ref = Z_COUNTED_P(zval_ptr); in i_zval_ptr_dtor() local
43 if (!GC_DELREF(ref)) { in i_zval_ptr_dtor()
44 rc_dtor_func(ref); in i_zval_ptr_dtor()
46 gc_check_possible_root(ref); in i_zval_ptr_dtor()
/PHP-8.3/sapi/phpdbg/
H A Dphpdbg_watch.h65 zend_refcounted *ref; member
71 zend_refcounted *ref; /* key to fetch the collision on parents */ member
77 zend_refcounted ref; member
84 phpdbg_watchpoint_t ref; member
101 zend_refcounted ref; member
/PHP-8.3/ext/dom/tests/
H A Dentity_reference_stale_02.phpt18 $ref = $dom->documentElement->firstChild;
19 $decl = $ref->firstChild;
21 $nodes = $ref->childNodes;
/PHP-8.3/ext/reflection/tests/
H A Dbug63399.phpt25 $ref = new ReflectionClass('MyClass');
27 print_r($ref->getTraitAliases());
28 print_r($ref->getTraits());
/PHP-8.3/Zend/tests/weakrefs/
H A Dgh10043-003.phpt14 $ref = WeakReference::create($map);
18 var_dump($ref->get());
27 var_dump($ref->get());
H A Dgh10043-004.phpt14 $ref = WeakReference::create($map);
18 var_dump($ref->get());
27 var_dump($ref->get());
/PHP-8.3/ext/spl/tests/
H A Dfixedarray_001.phpt29 $ref = "value4";
30 $ref2 =&$ref;
31 $a[4] = $ref;
32 $ref = "value5";

Completed in 28 milliseconds

12345678910>>...16