Home
last modified time | relevance | path

Searched refs:Foo (Results 1 – 25 of 881) sorted by relevance

12345678910>>...36

/PHP-8.3/Zend/tests/
H A Dns_025.phpt5 namespace Foo\Bar;
7 class Foo {
16 $x = new Foo;
17 Foo::Bar();
18 $x = new \Foo\Bar\Foo;
19 \Foo\Bar\Foo::Bar();
22 Foo\Bar\Foo
23 Foo\Bar\Foo
24 Foo\Bar\Foo
25 Foo\Bar\Foo
H A Dns_026.phpt7 namespace Foo;
9 class Foo {
22 $x = new Foo;
23 \Foo\Bar();
24 $x = new \Foo\Foo;
25 \Foo\Foo::Bar();
26 \Foo\Bar();
27 Foo\Bar();
30 Method - Foo\Foo::__construct
32 Method - Foo\Foo::__construct
[all …]
H A Dns_028.phpt7 class Foo {
16 $x = new Foo;
17 Foo\Bar();
18 $x = new Foo\Foo;
19 Foo\Foo::Bar();
20 \Foo\Bar();
23 Method - Foo::__construct
24 Func - Foo\Bar
25 Method - Foo\Foo::__construct
26 Method - Foo\Foo::Bar
[all …]
H A Dns_027.phpt7 class Foo {
16 $x = new Foo;
17 Foo::Bar();
18 $x = new Foo\Bar\Foo;
19 Foo\Bar\Foo::Bar();
22 Foo
23 Foo
24 Foo\Bar\Foo
25 Foo\Bar\Foo
H A Dns_002.phpt7 class Foo {
13 use test\ns1\Foo as Bar;
17 Foo::bar();
18 \test\ns1\Foo::bar();
20 ns2\Foo::bar();
21 ns1\Foo::bar();
24 test\ns1\Foo
25 test\ns1\Foo
26 test\ns1\Foo
27 test\ns1\Foo
[all …]
H A Dns_001.phpt7 class Foo {
22 $x = new Foo;
24 Foo::baz();
25 $y = new \test\ns1\Foo;
27 \test\ns1\Foo::baz();
30 test\ns1\Foo
31 test\ns1\Foo
32 test\ns1\Foo
33 test\ns1\Foo
34 test\ns1\Foo
[all …]
H A Dns_010.phpt7 class Foo {
17 new Foo();
18 new Y\Foo();
19 new \X\Foo();
20 Foo::bar();
21 Y\Foo::bar();
22 \X\Foo::bar();
23 echo Foo::C;
24 echo Y\Foo::C;
25 echo \X\Foo::C;
[all …]
H A Dclass_name_as_scalar.phpt6 namespace Foo\Bar {
37 Foo\Bar\One;
56 string(11) "Foo\Bar\Moo"
58 string(11) "Foo\Bar\One"
64 string(11) "Foo\Bar\Two"
65 string(11) "Foo\Bar\Two"
66 string(11) "Foo\Bar\One"
67 string(11) "Foo\Bar\Baz"
69 string(11) "Foo\Bar\Two"
71 string(11) "Foo\Bar\One"
[all …]
/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_023.phpt10 class Foo {
15 var_dump(Foo::$i = 1);
16 var_dump(Foo::$i);
18 var_dump(Foo::$i);
20 var_dump(Foo::$s);
21 var_dump(Foo::$s = Foo::$i++);
22 var_dump(Foo::$s, Foo::$i);
25 var_dump(Foo::$s);
27 var_dump(Foo::$i);
30 var_dump(Foo::$i);
[all …]
H A Dtyped_properties_068.phpt11 class Foo {
16 Foo::$i = &ref(5);
17 var_dump(Foo::$i);
19 $i = &Foo::$i;
26 Foo::$i = "4";
35 Foo::$i = null;
39 Foo::$s = &ref(5);
51 Foo::$i = &Foo::$s;
53 var_dump(Foo::$i, Foo::$s);
56 Foo::$s = &Foo::$i;
[all …]
H A Dtyped_class_constants_type_success3.phpt11 case Foo;
39 enum(E::Foo)
40 enum(E::Foo)
41 enum(E::Foo)
42 enum(E::Foo)
43 enum(E::Foo)
44 enum(E::Foo)
45 enum(E::Foo)
46 enum(E::Foo)
47 enum(E::Foo)
[all …]
H A Dtyped_properties_070.phpt12 class Foo {
17 Foo::$s .= "1";
18 var_dump(Foo::$s);
20 Foo::$s += 2;
21 var_dump(Foo::$s);
23 Foo::$s = &stringRef();
24 Foo::$s .= 2;
25 var_dump(Foo::$s);
28 var_dump(Foo::$i);
33 var_dump(Foo::$i);
[all …]
H A Dtyped_properties_075.phpt8 class Foo {
13 Foo::$bar++;
18 var_dump(Foo::$bar);
21 Foo::$bar += 1;
26 var_dump(Foo::$bar);
29 ++Foo::$bar;
34 var_dump(Foo::$bar);
37 Foo::$bar = Foo::$bar + 1;
42 var_dump(Foo::$bar);
48 string(53) "Cannot assign float to property Foo::$bar of type int"
[all …]
/PHP-8.3/Zend/tests/nullsafe_operator/
H A D001.phpt6 class Foo {
26 $foo = new Foo();
35 $foo = new Foo();
60 string(11) "Foo::null()"
62 string(11) "Foo::null()"
64 string(11) "Foo::null()"
66 string(11) "Foo::null()"
68 string(11) "Foo::null()"
70 string(11) "Foo::null()"
72 string(11) "Foo::null()"
[all …]
/PHP-8.3/Zend/tests/grammar/
H A Dregression_007.phpt6 class Foo {
26 Foo::{'new'}();
28 var_dump(Foo::use);
33 Foo::new
34 Foo::new
35 Foo::new
36 Foo::self
37 Foo::new
38 Foo::self
39 Foo::self
[all …]
H A Dregression_002.phpt6 class Foo {}
8 var_dump(Foo::class);
10 var_dump(Foo:: class);
12 var_dump(Foo:: CLASS);
14 var_dump(Foo::
19 string(3) "Foo"
20 string(3) "Foo"
21 string(3) "Foo"
22 string(3) "Foo"
H A Dregression_001.phpt6 class Foo {
10 Foo::function();
12 Foo::
15 Foo::
19 Foo::
27 Foo::function
28 Foo::function
29 Foo::function
30 Foo::function
/PHP-8.3/ext/tokenizer/tests/
H A Dnamespaced_names.phpt10 Foo
11 Foo\Bar
12 \Foo\Bar
13 namespace\Foo
14 Foo \ Bar
25 T_STRING: "Foo"
28 T_NAME_QUALIFIED: "Foo\Bar"
31 T_NAME_FULLY_QUALIFIED: "\Foo\Bar"
34 T_NAME_RELATIVE: "namespace\Foo"
37 T_STRING: "Foo"
/PHP-8.3/Zend/tests/enum/
H A Dunserialize-refcount.phpt6 enum Foo {
10 debug_zval_dump(Foo::Bar);
12 $foo = Foo::Bar;
15 $bar = unserialize('E:7:"Foo:Bar";');
22 debug_zval_dump(Foo::Bar);
26 object(Foo)#1 (1) refcount(2){
30 object(Foo)#1 (1) refcount(3){
34 object(Foo)#1 (1) refcount(4){
38 object(Foo)#1 (1) refcount(3){
42 object(Foo)#1 (1) refcount(2){
H A Dspl-object-storage.phpt6 enum Foo {
13 $storage[Foo::Bar] = 'Bar';
14 $storage[Foo::Baz] = 'Baz';
16 var_dump($storage[Foo::Bar]);
17 var_dump($storage[Foo::Baz]);
19 var_dump($storage->contains(Foo::Bar));
20 var_dump($storage->contains(Foo::Qux));
26 var_dump($unserialized[Foo::Bar]);
27 var_dump($unserialized[Foo::Baz]);
35 string(112) "O:16:"SplObjectStorage":2:{i:0;a:4:{i:0;E:7:"Foo:Bar";i:1;s:3:"Bar";i:2;E:7:"Foo:Baz";…
H A Denum-in-var-export.phpt7 enum Foo { case BAR; }
11 enum Foo { case BAR; }
15 enum Foo { case BAR; }
19 echo var_export(\Foo::BAR, true) . "\n";
20 echo var_export(\A\Foo::BAR, true) . "\n";
21 echo var_export(\A\B\Foo::BAR, true) . "\n";
26 \Foo::BAR
27 \A\Foo::BAR
28 \A\B\Foo::BAR
/PHP-8.3/sapi/cgi/tests/
H A D011.phpt29 header("X-Foo: Bar");
32 header("X-Foo: Bar");
37 header("X-Foo: Bar");
41 header("X-Foo: Bar");
45 header("X-Foo: Bar");
55 header("X-Foo: Bar");
83 header("X-Foo: Bar");
87 X-Foo: Bar
108 X-Foo: Bar
120 X-Foo: Bar
[all …]
/PHP-8.3/ext/reflection/tests/
H A Dgh8444.phpt6 enum Foo
13 public Foo $enum = Foo::Bar;
14 public $enumInArray = [Foo::Bar];
25 Property [ public Foo $enum = Foo::Bar ]
27 Property [ public $enumInArray = [Foo::Bar] ]
29 Property [ public Foo $enum = Foo::Bar ]
31 Property [ public $enumInArray = [Foo::Bar] ]
H A DReflectionEnumUnitCase_getValue.phpt6 enum Foo {
11 $barFromReflection = (new ReflectionEnumUnitCase(Foo::class, 'Bar'))->getValue();
12 $bazFromReflection = (new ReflectionEnumUnitCase(Foo::class, 'Baz'))->getValue();
17 var_dump(Foo::Bar === $barFromReflection);
18 var_dump(Foo::Baz === $barFromReflection);
20 var_dump(Foo::Bar === $bazFromReflection);
21 var_dump(Foo::Baz === $bazFromReflection);
25 enum(Foo::Bar)
26 enum(Foo::Baz)
/PHP-8.3/Zend/tests/in-de-crement/
H A Dobject_cannot_incdec.phpt5 class Foo { }
6 $o = new Foo;
34 Cannot increment Foo
35 object(Foo)#1 (0) {
37 Cannot decrement Foo
38 object(Foo)#1 (0) {
40 Cannot increment Foo
41 object(Foo)#1 (0) {
43 Cannot decrement Foo
44 object(Foo)#1 (0) {

Completed in 45 milliseconds

12345678910>>...36