/PHP-8.3/Zend/tests/ |
H A D | by_ref_optimization.phpt | 2 Don't optimize send opcodes that differ in by-ref behavior 6 call_user_func('ref', function_exists('strlen')); 7 ref(function_exists('strlen')); 9 function ref(&$x) { 15 Warning: ref(): Argument #1 ($x) must be passed by reference, value given in %s on line %d
|
H A D | call_user_func_by_ref.phpt | 2 call_user_func() with ref arg and type check 6 function test(Type &$ref) { 16 Warning: test(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d 17 test(): Argument #1 ($ref) must be of type Type, int given, called in %s on line %d
|
H A D | bug73663.phpt | 5 function change(&$ref) { 6 $ref = range(1, 10); 10 $func = function (&$ref) { 11 return change($ref);
|
/PHP-8.3/tests/lang/ |
H A D | returnByReference.006.phpt | 21 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 D | passByReference_005.phpt | 10 function r(&$ref) { 11 $ref = "Ref changed"; 19 function vr($val, &$ref) { 21 $ref = "Ref changed"; 24 function rv(&$ref, $val) { 26 $ref = "Ref changed"; 38 $ref = "Ref changed"; 45 function r(&$ref) { 46 $ref = "Ref changed"; 56 $ref = "Ref changed"; [all …]
|
H A D | returnByReference.007.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.008.phpt | 24 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 …
|
H A D | passByReference_006.phpt | 31 echo "\n ---- Pass uninitialized array & object by ref: function call ---\n"; 36 echo "\n ---- Pass uninitialized arrays & objects by ref: static method call ---\n"; 41 echo "\n\n---- Pass uninitialized arrays & objects by ref: constructor ---\n"; 46 echo "\n ---- Pass uninitialized arrays & objects by ref: instance method call ---\n"; 53 ---- Pass uninitialized array & object by ref: function call --- 66 ---- Pass uninitialized arrays & objects by ref: static method call --- 80 ---- Pass uninitialized arrays & objects by ref: constructor --- 93 ---- Pass uninitialized arrays & objects by ref: instance method call ---
|
/PHP-8.3/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"; 121 [2] => ref 131 Fatal error: Uncaught Error: ref(): Argument #1 ($b) could not be passed by reference in %soptimize…
|
H A D | bug78034.phpt | 8 function &ref() {} 13 $this->foo = &ref(); 16 $this->foo = &ref();
|
/PHP-8.3/Zend/tests/attributes/ |
H A D | 020_userland_attribute_validation.phpt | 9 $ref = new \ReflectionFunction(#[A1] function () { }); 10 $attr = $ref->getAttributes()[0]; 16 $ref = new \ReflectionObject(new #[A1] class() { }); 17 $attr = $ref->getAttributes()[0]; 28 $ref = new \ReflectionFunction(#[A1] #[A1] function () { }); 29 $attr = $ref->getAttributes()[0]; 43 $ref = new \ReflectionObject(new #[A2] #[A2] class() { }); 44 $attr = $ref->getAttributes()[0];
|
H A D | 001_placement.phpt | 28 $ref = new \ReflectionClass(Foo::class); 31 $ref, 32 $ref->getReflectionConstant('FOO'), 33 $ref->getProperty('x'), 34 $ref->getMethod('foo'), 35 $ref->getMethod('foo')->getParameters()[0], 36 $ref->getMethod('foo')->getParameters()[1],
|
/PHP-8.3/Zend/tests/type_declarations/ |
H A D | return_separation.phpt | 8 $ref =& $array; 9 unset($ref); 15 $ref =& $int; 16 unset($ref);
|
H A D | typed_properties_107.phpt | 7 public static $ref; 20 Test1::$ref =& $test2->str; 21 Test1::$ref = new Test3; 22 var_dump(Test1::$ref);
|
H A D | typed_properties_068.phpt | 2 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 D | typed_properties_106.phpt | 9 $ref =& $obj->prop; 11 $ref = [1]; 17 $ref = $ary; 21 var_dump($ref);
|
/PHP-8.3/ext/standard/tests/serialize/ |
H A D | serialization_objects_004.phpt | 6 $ref = &$x; 10 $ref = &$x; 14 $ref = &$x; 18 $ref = &$x; 22 $ref = &$x; 26 $ref = &$x;
|
/PHP-8.3/ext/opcache/tests/jit/ |
H A D | assign_025.phpt | 14 $arr[0][0] = $ref; 16 $ref = 1; 17 $arr[0][0] = $ref; 24 Warning: Undefined variable $ref in %s on line %d
|
/PHP-8.3/ext/opcache/tests/opt/ |
H A D | sccp_029.phpt | 18 $ref = "y"; 19 $test->x =& $ref; 20 $ref = 42; 21 var_dump($ref);
|
/PHP-8.3/ext/reflection/tests/ |
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 | bug77882.phpt | 22 $ref = new ReflectionClass('Test'); 23 $obj = $ref->newInstance(); 28 $ref = new ReflectionClass('Test'); 29 $obj = $ref->newInstanceArgs([]);
|
H A D | bug79062.phpt | 20 $ref = new \ReflectionClass(BugReportMailrcConfigTests::class); 21 $s1 = $ref->getProperty('s1'); 24 $s2 = $ref->getProperty('s2'); 27 $s3 = $ref->getProperty('s3');
|
/PHP-8.3/Zend/tests/fibers/ |
H A D | gc-cycle-callback.phpt | 6 $ref = new class () { 14 $fiber = new Fiber(function () use ($ref) { 18 $ref->fiber = $fiber; 21 $ref = null;
|
/PHP-8.3/Zend/tests/restrict_globals/ |
H A D | invalid_pass_by_ref.phpt | 6 function by_ref(&$ref) {} 18 function by_ref2(&$ref) {} 22 by_ref(): Argument #1 ($ref) could not be passed by reference 23 by_ref2(): Argument #1 ($ref) could not be passed by reference
|
/PHP-8.3/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 …]
|