Home
last modified time | relevance | path

Searched refs:ref (Results 26 – 50 of 364) sorted by relevance

12345678910>>...15

/PHP-8.3/Zend/tests/
H A Dby_ref_optimization.phpt2 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 Dcall_user_func_by_ref.phpt2 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 Dbug73663.phpt5 function change(&$ref) {
6 $ref = range(1, 10);
10 $func = function (&$ref) {
11 return change($ref);
/PHP-8.3/tests/lang/
H A DreturnByReference.006.phpt21 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 DpassByReference_005.phpt10 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 DreturnByReference.007.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.008.phpt24 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 DpassByReference_006.phpt31 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 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";
121 [2] => ref
131 Fatal error: Uncaught Error: ref(): Argument #1 ($b) could not be passed by reference in %soptimize…
H A Dbug78034.phpt8 function &ref() {}
13 $this->foo = &ref();
16 $this->foo = &ref();
/PHP-8.3/Zend/tests/attributes/
H A D020_userland_attribute_validation.phpt9 $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 D001_placement.phpt28 $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 Dreturn_separation.phpt8 $ref =& $array;
9 unset($ref);
15 $ref =& $int;
16 unset($ref);
H A Dtyped_properties_107.phpt7 public static $ref;
20 Test1::$ref =& $test2->str;
21 Test1::$ref = new Test3;
22 var_dump(Test1::$ref);
H A Dtyped_properties_068.phpt2 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 Dtyped_properties_106.phpt9 $ref =& $obj->prop;
11 $ref = [1];
17 $ref = $ary;
21 var_dump($ref);
/PHP-8.3/ext/standard/tests/serialize/
H A Dserialization_objects_004.phpt6 $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 Dassign_025.phpt14 $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 Dsccp_029.phpt18 $ref = "y";
19 $test->x =& $ref;
20 $ref = 42;
21 var_dump($ref);
/PHP-8.3/ext/reflection/tests/
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 Dbug77882.phpt22 $ref = new ReflectionClass('Test');
23 $obj = $ref->newInstance();
28 $ref = new ReflectionClass('Test');
29 $obj = $ref->newInstanceArgs([]);
H A Dbug79062.phpt20 $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 Dgc-cycle-callback.phpt6 $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 Dinvalid_pass_by_ref.phpt6 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 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 …]

Completed in 24 milliseconds

12345678910>>...15