/PHP-7.0/Zend/ |
H A D | zend_gc.c | 82 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 D | zend_variables.c | 71 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 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'); 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 D | ReflectionGenerator_basic.phpt | 26 $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 D | bug72846.phpt | 28 $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 D | bug63399.phpt | 25 $ref = new ReflectionClass('MyClass'); 27 print_r($ref->getTraitAliases()); 28 print_r($ref->getTraits());
|
H A D | bug70960.phpt | 6 $ref = new ReflectionFunction('array_unique'); 7 var_dump(count($ref->getParameters()));
|
/PHP-7.0/Zend/tests/ |
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 | bug73663.phpt | 5 function change(&$ref) { 6 $ref = range(1, 10); 10 $func = function (&$ref) { 11 return change($ref);
|
H A D | foreach_009.phpt | 7 foreach ($a as &$ref) { 9 echo "$ref-$ref2\n"; 10 if ($ref == 5 && $ref2 == 6) {
|
H A D | bug55305.phpt | 2 Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
|
H A D | bug63762.phpt | 7 $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 D | get_object_vars_variation_002.phpt | 15 $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 D | returnByReference.006.phpt | 23 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 D | returnByReference.007.phpt | 25 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 D | returnByReference.008.phpt | 26 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 D | passByReference_005.phpt | 10 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 D | return_separation.phpt | 8 $ref =& $array; 9 unset($ref); 15 $ref =& $int; 16 unset($ref);
|
/PHP-7.0/ext/opcache/tests/ |
H A D | optimize_func_calls.phpt | 63 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 D | gdtest.c | 22 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 D | serialization_objects_004.phpt | 17 $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 D | str_replace_array_refs.phpt | 8 $ref = &$data; 9 $b = &$ref['a']; 10 $numeric = &$ref['numeric'];
|
/PHP-7.0/ext/spl/tests/ |
H A D | fixedarray_001.phpt | 29 $ref = "value4"; 30 $ref2 =&$ref; 31 $a[4] = $ref; 32 $ref = "value5";
|
/PHP-7.0/tests/classes/ |
H A D | static_properties_003.phpt | 17 $ref = 'ref'; 18 $c->x =& $ref; 26 //$c->y =& $ref; // Fatal error, tested in static_properties_003_error4.phpt 44 %unicode|string%(3) "ref"
|