Home
last modified time | relevance | path

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

123456789

/PHP-7.0/Zend/
H A Dzend_gc.c82 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
88 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
93 ref, GC_REFCOUNT(ref), GC_ADDRESS(GC_INFO(ref)), in gc_trace_ref()
260 newRoot->ref = ref; in gc_possible_root()
281 if (root->ref == ref) { in gc_find_additional_buffer()
376 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan_black()
487 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_mark_grey()
608 ref = Z_COUNTED(((zend_reference*)ref)->val); in gc_scan()
704 buf->ref = ref; in gc_add_garbage()
796 ref = Z_COUNTED(((zend_reference*)ref)->val);
[all …]
H A Dzend_variables.c71 zend_reference *ref = (zend_reference*)p; in _zval_dtor_func() local
73 i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_RELAY_CC); in _zval_dtor_func()
74 efree_size(ref, sizeof(zend_reference)); in _zval_dtor_func()
119 zend_reference *ref = (zend_reference*)p; in _zval_dtor_func_for_ptr() local
121 i_zval_ptr_dtor(&ref->val ZEND_FILE_LINE_RELAY_CC); in _zval_dtor_func_for_ptr()
122 efree_size(ref, sizeof(zend_reference)); in _zval_dtor_func_for_ptr()
145 zend_reference *ref = (zend_reference*)Z_REF_P(zvalue); in _zval_internal_dtor() local
147 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor()
148 free(ref); in _zval_internal_dtor()
178 zval_internal_ptr_dtor(&ref->val); in _zval_internal_dtor_for_ptr()
[all …]
/PHP-7.0/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());
H A Dbug72846.phpt28 $ref = new \ReflectionClass('Some\B');
30 var_dump($ref->getConstant('ONE'));
31 var_dump($ref->getConstant('CONST_NUMBERS'));
32 var_dump($ref->getConstant('NUMBERS'));
H A Dbug63399.phpt25 $ref = new ReflectionClass('MyClass');
27 print_r($ref->getTraitAliases());
28 print_r($ref->getTraits());
H A Dbug70960.phpt6 $ref = new ReflectionFunction('array_unique');
7 var_dump(count($ref->getParameters()));
/PHP-7.0/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 Dbug73663.phpt5 function change(&$ref) {
6 $ref = range(1, 10);
10 $func = function (&$ref) {
11 return change($ref);
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.0/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.0/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…
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 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…
50 ---> 1. Via a return by ref function call, assign by reference the return value of a function that …
56 ---> 2. Via a return by ref function call, assign by reference the return value of a function that …
62 ---> 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.0/Zend/tests/type_declarations/
H A Dreturn_separation.phpt8 $ref =& $array;
9 unset($ref);
15 $ref =& $int;
16 unset($ref);
/PHP-7.0/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.0/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.0/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.0/ext/standard/tests/strings/
H A Dstr_replace_array_refs.phpt8 $ref = &$data;
9 $b = &$ref['a'];
10 $numeric = &$ref['numeric'];
/PHP-7.0/ext/spl/tests/
H A Dfixedarray_001.phpt29 $ref = "value4";
30 $ref2 =&$ref;
31 $a[4] = $ref;
32 $ref = "value5";
/PHP-7.0/tests/classes/
H A Dstatic_properties_003.phpt17 $ref = 'ref';
18 $c->x =& $ref;
26 //$c->y =& $ref; // Fatal error, tested in static_properties_003_error4.phpt
44 %unicode|string%(3) "ref"

Completed in 35 milliseconds

123456789