/PHP-8.2/Zend/tests/ |
H A D | lsb_021.phpt | 5 class A { 11 class B extends A { 21 A::test(); 22 call_user_func("A::test"); 23 call_user_func(array("A", "test")); 57 A 58 A 59 A
|
H A D | bug69832.phpt | 7 public $foo = [Bar::A, __CLASS__][__CLASS__ != ""]; 8 public $bar = Bar::A && __CLASS__; 9 public $baz = Bar::A ?: __CLASS__; 10 public $buzz = Bar::A ? __CLASS__ : 0; 15 const A = 1;
|
H A D | bug71428.3.phpt | 5 class A { } 6 class B { public function m(A $a = NULL, $n) { echo "B.m";} }; 7 class C extends B { public function m(A $a , $n) { echo "C.m";} }; 10 Fatal error: Declaration of C::m(A $a, $n) must be compatible with B::m(?A $a, $n) in %sbug71428.3.…
|
H A D | closure_043.phpt | 9 $staticUnscoped = static function () { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 11 class A { 14 return static function() { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 18 $staticScoped = A::getStaticClosure(); 29 $d = $staticUnscoped->bindTo(new A, null); 30 $d = $staticScoped->bindTo(new A, null); 33 $d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n"; 34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n"; 37 $d = $staticUnscoped->bindTo(new A, 'A'); 38 $d = $staticScoped->bindTo(new A, 'A');
|
H A D | bug54624.phpt | 5 class A 7 function foo(A $param) { 12 class_alias('A', 'AliasA'); 15 class B extends A
|
/PHP-8.2/Zend/tests/type_declarations/intersection_types/ |
H A D | parameter.phpt | 6 interface A {} 9 class Foo implements A, B {} 10 class Bar implements A {} 12 function foo(A&B $bar) { 28 foo(): Argument #1 ($bar) must be of type A&B, Bar given, called in %s on line %d
|
H A D | added_interface_intersection_type.phpt | 10 class A implements X, Y, Z {} 17 return new A(); 28 $a = new A(); 35 object(A)#1 (0) { 38 object(A)#3 (0) {
|
/PHP-8.2/Zend/tests/enum/ |
H A D | no-write-properties-cache-slot.phpt | 7 case A; 17 Test::A->modify(); 21 var_dump(Test::A->name); 25 string(1) "A" 27 string(1) "A"
|
/PHP-8.2/Zend/tests/traits/ |
H A D | bug60165d.phpt | 8 trait A {} 15 use A, B { 16 A::bar insteadof B; 21 Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line …
|
/PHP-8.2/Zend/tests/prop_const_expr/ |
H A D | default_args.phpt | 6 enum A: string { 11 $name = A::B->name, 12 $value = A::B->value, 13 $nameNullsafe = A::B?->name, 14 $valueNullsafe = A::B?->value,
|
H A D | property_initializer.phpt | 6 enum A: int { 11 public string $d = A::B->name; 12 public int $e = A::B->value; 13 public string $f = A::B?->name; 14 public int $g = A::B?->value;
|
H A D | static_property_initializer.phpt | 6 enum A: int { 11 public static string $d = A::B->name; 12 public static int $e = A::B->value; 13 public static string $f = A::B?->name; 14 public static int $g = A::B?->value;
|
H A D | enum_initializer.phpt | 6 enum A: string { 11 case E = A::B->name; 12 case F = A::B->value; 16 case H = A::B?->name; 17 case I = A::B?->value;
|
/PHP-8.2/ext/reflection/tests/ |
H A D | bug43926.phpt | 11 class A extends D { 14 class C extends A { 17 $ra = new ReflectionClass('A'); 27 print("Is? A ". ($ra->isInstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof A) ? … 32 print("Is? A ". ($ra->isInstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof A) ? … 37 print("Is? A ". ($ra->isInstance($cd) ? 'true' : 'false') .", instanceof: ". (($cd instanceof A) ? … 42 print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof A) ? … 49 Is? A true, instanceof: true 54 Is? A true, instanceof: true 59 Is? A false, instanceof: false [all …]
|
H A D | ReflectionClass_getProperty_004.phpt | 8 class A { 18 class B extends A { 75 showInfo("A::pubC"); 76 showInfo("A::protC"); 77 showInfo("A::privC"); 103 string(1) "A" 105 string(9) "pubA in A" 111 string(1) "A" 165 string(1) "A" 173 string(1) "A" [all …]
|
H A D | bug64239.phpt | 5 class A { 13 class B extends A{ 28 [class] => A 34 [class] => A 41 [class] => A
|
/PHP-8.2/tests/classes/ |
H A D | property_override_protectedStatic_protected.phpt | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_private.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_protected.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_public.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_public_private.phpt | 5 class A 7 public $p = "A::p"; 14 class B extends A 24 $a = new A; 32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
|
H A D | property_override_protectedStatic_private.phpt | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_protectedStatic_public.phpt | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_public_protected.phpt | 5 class A 7 public $p = "A::p"; 14 class B extends A 24 $a = new A; 32 Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
|
/PHP-8.2/Zend/tests/generators/ |
H A D | nested_method_calls.phpt | 6 class A { 8 echo "Called A::foo\n"; 22 $g1 = gen(new A); 33 Called A::foo 34 Called A::foo
|