Home
last modified time | relevance | path

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

123456789

/PHP-7.1/Zend/
H A Dzend_gc.c132 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
138 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
143 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
310 newRoot->ref = ref; in gc_possible_root()
331 if (root->ref == ref) { in gc_find_additional_buffer()
426 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan_black()
537 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_mark_grey()
658 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan()
753 buf->ref = ref; in gc_add_garbage()
845 ref = Z_COUNTED(((zend_reference*)ref)->val);
[all …]
H A Dzend_variables.c67 zend_reference *ref = (zend_reference*)p; in _zval_dtor_func() local
69 i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_RELAY_CC); in _zval_dtor_func()
70 efree_size(ref, sizeof(zend_reference)); in _zval_dtor_func()
93 zend_reference *ref = (zend_reference*)Z_REF_P(zvalue); in _zval_internal_dtor() local
95 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor()
96 free(ref); in _zval_internal_dtor()
124 zend_reference *ref = (zend_reference*)Z_REF_P(zvalue); in _zval_internal_dtor_for_ptr() local
126 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor_for_ptr()
127 free(ref); in _zval_internal_dtor_for_ptr()
/PHP-7.1/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 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());
/PHP-7.1/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;
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 Dbug63762.phpt7 $ref = new ReflectionProperty($e, 'trace');
8 $ref->setAccessible(TRUE);
11 $ref->setValue($e, array(NULL));
16 $ref->setValue($e, array(array()));
20 $ref->setValue($e, array(array(
/PHP-7.1/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.1/tests/lang/
H A DreturnByReference.006.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.007.phpt25 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
32 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th…
39 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
48 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
54 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
60 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DreturnByReference.008.phpt26 echo "\n---> 1. Via a return by ref function call, assign by reference the return value of a functi…
33 …\n---> 2. Via a return by ref function call, assign by reference the return value of a function th…
40 echo "\n---> 3. Via a return by ref function call, assign by reference the return value of a functi…
49 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
55 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
61 ---> 3. Via a return by ref function call, assign by reference the return value of a function that …
H A DpassByReference_005.phpt10 function r(&$ref) {
11 $ref = "Ref changed";
20 function vr($val, &$ref) {
22 $ref = "Ref changed";
25 function rv(&$ref, $val) {
27 $ref = "Ref changed";
40 $ref = "Ref changed";
47 function r(&$ref) {
48 $ref = "Ref changed";
58 $ref = "Ref changed";
[all …]
/PHP-7.1/Zend/tests/type_declarations/
H A Dreturn_separation.phpt8 $ref =& $array;
9 unset($ref);
15 $ref =& $int;
16 unset($ref);
/PHP-7.1/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
/PHP-7.1/ext/gd/libgd/
H A Dgdtest.c22 gdImagePtr im, ref, im2, im3; in main() local
47 ref = gdImageCreateFromPng (in); in main()
53 CompareImages ("Initial Versions", ref, im); in main()
73 CompareImages ("GD->PNG File->GD", ref, im2); in main()
82 CompareImages ("GD->PNG ptr->GD", ref, im2); in main()
117 CompareImages ("GD->GD2 ptr->GD", ref, im2); in main()
140 CompareImages ("GD->GD File->GD", ref, im2); in main()
152 CompareImages ("GD->GD ptr->GD", ref, im2); in main()
174 CompareImages ("GD Source", ref, im2); in main()
199 CompareImages ("GD Sink", ref, im2); in main()
[all …]
/PHP-7.1/ext/standard/tests/serialize/
H A Dserialization_objects_004.phpt17 $ref = &$x;
21 $ref = &$x;
25 $ref = &$x;
29 $ref = &$x;
33 $ref = &$x;
37 $ref = &$x;
/PHP-7.1/ext/standard/tests/strings/
H A Dstr_replace_array_refs.phpt8 $ref = &$data;
9 $b = &$ref['a'];
10 $numeric = &$ref['numeric'];
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_watch.h67 zend_refcounted *ref; member
73 zend_refcounted *ref; /* key to fetch the collision on parents */ member
79 zend_refcounted ref; member
86 phpdbg_watchpoint_t ref; member
103 zend_refcounted ref; member
/PHP-7.1/ext/xml/tests/
H A Dbug30875.phpt12 <!ENTITY ref "ent">
14 <elt att="&ref;">a&ref;</elt>

Completed in 27 milliseconds

123456789