/PHP-8.0/Zend/tests/ |
H A D | bug44653.phpt | 5 namespace A; 10 class A { 17 var_dump(\A\XX); 18 A::fooBar(); 19 \A\fooBar(); 27 A\fooBar
|
H A D | bug64239_3.phpt | 5 class A { 9 class C extends A { 21 $a = new A(); 30 #0 A->Bmethod() called at [%sbug64239_3.php:%d] 31 #0 A->t2method() called at [%sbug64239_3.php:%d] 33 #0 A->t2method() called at [%sbug64239_3.php:%d]
|
H A D | ns_039.phpt | 5 function foo($a = A) { 8 function bar($a = array(A => B)) { 14 const A = "ok"; 15 const B = A; 16 echo A . "\n";
|
H A D | closure_044.phpt | 5 /* A non-static closure has a bound instance if it has a scope 8 $nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 10 class A { 13 return function() { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 17 $a = new A(); 29 $d = $nonstaticUnscoped->bindTo(new A, null); $d(); echo "\n"; 30 $d = $nonstaticScoped->bindTo(new A, null); $d(); echo "\n"; 33 $d = $nonstaticUnscoped->bindTo(null, 'A'); $d(); echo "\n"; 34 $d = $nonstaticScoped->bindTo(null, 'A'); var_dump($d); echo "\n"; 37 $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n"; [all …]
|
/PHP-8.0/ext/reflection/tests/ |
H A D | bug48336.phpt | 5 class A { 8 class B extends A { 26 $class = 'A'; 27 for($class = 'A'; $class <= 'F'; $class ++) { 33 print('N/A'); 39 A => N/A
|
H A D | bug79487.phpt | 13 class A { 14 public static $a = 'A old'; 16 class B extends A { 21 A::$a = 'A new'; 33 string(5) "A new"
|
H A D | ReflectionClass_implementsInterface_001.phpt | 9 class A implements I1 {} 10 class B extends A {} 69 Does A implement A? 72 Does A implement B? 75 Does A implement C? 78 Does A implement I1? 81 Does A implement I2? 84 Does B implement A? 99 Does C implement A? 114 Does I1 implement A? [all …]
|
H A D | ReflectionClass_export_array_bug72222.phpt | 5 Class A { 6 const A = 8; 9 echo new ReflectionClass("A"), "\n"; 12 Class [ <user> class A ] { 16 Constant [ public int A ] { 8 }
|
H A D | ReflectionClass_toString_002.phpt | 8 Class A { 11 Class B extends A { 20 foreach (array('A', 'B', 'C', 'D') as $class) { 28 ----( Reflection class A: )---- 29 Class [ <user> class A ] { 53 Class [ <user> class B extends A ] { 69 Method [ <user, overwrites A, prototype A> public method f ] { 93 Method [ <user, inherits B, prototype A> public method f ] { 117 Method [ <user, overwrites B, prototype A> public method f ] {
|
H A D | bug53915.phpt | 7 const A = 1; 8 const B = self::A; 16 const A = 1; 17 const B = self::A; 26 [A] => 1
|
H A D | ReflectionObject_isInstance_basic.phpt | 5 class A {} 6 class B extends A {} 9 $classes = array("A", "B", "X"); 11 $instances = array( "myA" => new A, 25 is myA a A? bool(true) 26 is myB a A? bool(true) 27 is myX a A? bool(false)
|
/PHP-8.0/Zend/tests/type_declarations/ |
H A D | typed_properties_076.phpt | 6 class A {} 7 class B extends A {} 18 public A $A; 56 valid($test, 'A', 'A', new A); 57 valid($test, 'A', 'B', new B); 58 invalid($test, 'A', 'B', new A); 60 valid($test, 'A', 'object', new A); 61 invalid($test, 'A', 'object', new Test);
|
/PHP-8.0/ext/pdo/tests/ |
H A D | pdo_007.phpt | 18 $db->exec("INSERT INTO test VALUES('A', 'A')"); 19 $db->exec("INSERT INTO test VALUES('B', 'A')"); 33 ["A"]=> 36 string(1) "A" 41 string(1) "A" 50 ["A"]=> 53 string(1) "A" 58 string(1) "A"
|
H A D | pdo_011.phpt | 89 test(1,N/A) 90 test(2,N/A) 91 test(3,N/A) 92 test(4,N/A) 121 test(1,A) 129 string(1) "A" 161 string(1) "A" 199 string(1) "A" 232 string(1) "A" 258 string(1) "A" [all …]
|
/PHP-8.0/ext/standard/tests/serialize/ |
H A D | bug31402.phpt | 17 var $A = array(); 21 $this->A[1] = new TestX(1); 23 $this->A[2] = & $obj; 24 $this->A[3] = & $this->A[2]; 25 $this->B = $this->A[1]; 38 ["A"]=> 63 ["A"]=>
|
/PHP-8.0/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error4.phpt | 7 if ($class == 'A') { 8 class A { 11 var_dump(new A); 13 class B extends A { 24 public function method(): A {} 34 object(A)#2 (0) { 39 Fatal error: Declaration of Y::method(): A must be compatible with X::method(): B in %s on line %d
|
/PHP-8.0/ext/zend_test/tests/ |
H A D | observer_bug81430_1.phpt | 15 class A { 21 #[A] 25 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']); 30 <!-- init A::__construct() --> 31 <A::__construct> 32 </A::__construct>
|
/PHP-8.0/Zend/tests/return_types/ |
H A D | inheritance001.phpt | 6 class A { 7 function foo(): A {} 10 class B extends A { 15 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
|
H A D | inheritance003.phpt | 6 interface A { 7 function foo(): A; 10 class B implements A { 15 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
|
H A D | inheritance002.phpt | 6 abstract class A { 7 abstract function foo(): A; 10 class B extends A { 15 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | bug52138.data | 8 A=1 9 B=A "A" A
|
/PHP-8.0/Zend/tests/traits/ |
H A D | static_forward_static_call.phpt | 10 return 'Forwarded '.forward_static_call(array('A', 'test')); 14 class A { 16 return "Test A"; 20 class B extends A { 28 Forwarded Test A
|
/PHP-8.0/ext/spl/tests/ |
H A D | regexiterator_getregex.phpt | 20 $regexIterator = new RegexIterator($iterator, '|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|'); 29 string(43) "|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|"
|
/PHP-8.0/tests/classes/ |
H A D | constants_visibility_002.phpt | 5 class A { 15 A::staticConstDump(); 16 (new A())->constDump(); 18 constant('A::protectedConst'); 27 Cannot access protected constant A::protectedConst
|
H A D | constants_visibility_003.phpt | 5 class A { 15 A::staticConstDump(); 16 (new A())->constDump(); 18 constant('A::privateConst'); 27 Cannot access private constant A::privateConst
|