/php-src/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid2.phpt | 6 interface A {} 11 public X|(A&B) $prop; 12 public function foo(X|(A&B) $v): X|(A&B) {} 16 public (B&A)|X $prop; 17 public function foo((B&A)|X $v): (B&A)|X {}
|
H A D | invalid_covariance_drop_type1.phpt | 6 interface A {} 10 class Test implements A, B {} 13 public function foo(): (A&B)|X { 18 /* This fails because just A larger than A&B */ 20 public function foo(): A|X { 27 Fatal error: Declaration of FooChild::foo(): A|X must be compatible with Foo::foo(): (A&B)|X in %s …
|
H A D | invalid_covariance_drop_type2.phpt | 6 interface A {} 11 class Test implements A, B, C {} 14 public function foo(): (A&B&C)|X { 19 /* This fails because just (A&B) larger than ((A&B)&C) */ 21 public function foo(): (A&B)|X { 28 Fatal error: Declaration of FooChild::foo(): (A&B)|X must be compatible with Foo::foo(): (A&B&C)|X …
|
/php-src/Zend/tests/property_hooks/ |
H A D | inheritance.phpt | 6 class A { 8 get { return "A"; } 13 class B extends A { 19 $a = new A; 29 string(1) "A" 30 A::$prop::set 32 A::$prop::set
|
H A D | override_by_plain_prop.phpt | 6 class A { 13 class B extends A { 17 $a = new A(); 27 A::$prop::set 28 A::$prop::get 30 A::$prop::set 31 A::$prop::get
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | invalid_covariance_drop_type1.phpt | 6 interface A {} 9 class Test implements A, B {} 12 public function foo(): A&B { 17 /* This fails because just A larger than A&B */ 19 public function foo(): A { 26 Fatal error: Declaration of FooChild::foo(): A must be compatible with Foo::foo(): A&B in %s on lin…
|
H A D | invalid_covariance_drop_type2.phpt | 6 interface A {} 10 class Test implements A, B, C {} 13 public function foo(): A&B&C { 18 /* This fails because just A&B larger than A&B&C */ 20 public function foo(): A&B { 27 Fatal error: Declaration of FooChild::foo(): A&B must be compatible with Foo::foo(): A&B&C in %s on…
|
/php-src/Zend/tests/ |
H A D | property_exists.phpt | 8 $a = new A; 13 var_dump(property_exists("A", "prot")); 14 var_dump(property_exists("A", "prot2")); 15 var_dump(property_exists("A", "prot3")); 19 $a = new A; 24 var_dump(property_exists("A", "prot")); 25 var_dump(property_exists("A", "prot2")); 26 var_dump(property_exists("A", "prot3")); 30 class A extends aParent { 36 A::staticTest();
|
H A D | bug64239_4.phpt | 5 class A { 9 class C extends A { 21 A::Bmethod(); 22 A::t2method(); 28 #0 %s(%d): A::Bmethod() 29 #0 %s(%d): A::t2method() 31 #0 %s(%d): A::t2method()
|
H A D | access_modifiers_008.phpt | 6 class A { 8 return 'A::ma()'; 12 return 'A::mp()'; 16 class B1 extends A { 30 class B2 extends A { 32 echo A::ma() . "\n"; 34 echo A::mp() . "\n"; 38 echo B1::ma() . "\n"; // protected method defined also in A 40 echo B1::mp() . "\n"; // protected method defined also in A but as private 56 A::ma() [all …]
|
H A D | bug69676.phpt | 5 class A { 6 const myConst = "const in A"; 10 class B extends A { 15 var_dump(A::myDynConst); 18 string(10) "const in A" 19 string(10) "const in A"
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_class_constants_type_error8.phpt | 5 class A { 7 public const stdClass&Stringable CONST2 = A::CONST1; 13 var_dump(A::CONST2); 19 var_dump(A::CONST2); 25 var_dump(A::CONST1); 31 var_dump(A::CONST1); 37 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable 38 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable 39 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable 40 Cannot assign stdClass to class constant A::CONST1 of type stdClass&Stringable
|
H A D | typed_class_constants_type_success3.phpt | 14 class A { 22 var_dump(A::ENUM_CONST); 23 var_dump(A::ENUM_CONST); 24 var_dump(A::CONST1); 25 var_dump(A::CONST1); 26 var_dump(A::CONST2); 27 var_dump(A::CONST2); 30 var_dump(A::CONST3); 31 var_dump(A::CONST3); 34 var_dump(A::CONST4); [all …]
|
H A D | typed_properties_052.phpt | 7 class A { 8 public A $a1; 11 public ?A $a2; 17 $obj = new A; 21 object(A)#1 (0) { 23 uninitialized(A) 29 uninitialized(?A)
|
H A D | static_type_return.phpt | 6 class A { 21 class B extends A { 29 $a = new A; 71 object(A)#%d (0) { 76 object(A)#%d (0) { 78 A::test2(): Return value must be of type B, A returned 80 object(A)#%d (0) { 85 object(A)#%d (0) { 87 A::test4(): Return value must be of type B|array, A returned 90 object(A)#%d (0) {
|
/php-src/ext/standard/tests/strings/ |
H A D | crypt_variation1.phpt | 6 $b = str_repeat("A", 124); 7 echo crypt("A", "$5$" . $b)."\n"; 8 $b = str_repeat("A", 125); 9 echo crypt("A", "$5$" . $b)."\n"; 10 $b = str_repeat("A", 4096); 11 echo crypt("A", "$5$" . $b)."\n";
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionProperty_getDocComment_basic.phpt | 8 class A { 26 class B extends A { 28 /** A doc comment for $b */ 30 /** A doc comment for $e */ 34 foreach(array('A', 'B') as $class) { 45 ---> Doc comment for A::$a: 52 ---> Doc comment for A::$b: 56 ---> Doc comment for A::$c: 60 ---> Doc comment for A::$d: 66 ---> Doc comment for A::$e: [all …]
|
/php-src/ext/phar/tests/ |
H A D | bug71625.phpt | 14 if (file_exists('A:')) die('skip drive A: exists'); 19 $phar = new Phar("A:A:.phar"); 24 Fatal error: Uncaught UnexpectedValueException: Cannot create phar 'A:A:.phar', file extension (or … 26 #0 %sbug71625.php(%d): Phar->__construct('A:A:.phar')
|
H A D | gh14603.phpt | 8 PK��eI���a.phpnuW+A��hioPK��eI�`���.phar/stub.php… 22 …W+A��hioPK��eIl�`a.phpsnuW+A��<?php function hio(){}PK… 23 …A��PK��eI�`���8.phar/stub.phpnuW+A��PK…
|
/php-src/ext/pdo_firebird/tests/ |
H A D | rowCount.phpt | 8 A bug in firebird causes a memory leak when calling `isc_attach_database()`. 16 $dbh->exec('CREATE TABLE test_rowcount (A VARCHAR(10))'); 17 $dbh->exec("INSERT INTO test_rowcount VALUES ('A')"); 18 $dbh->exec("INSERT INTO test_rowcount VALUES ('A')"); 21 $query = "SELECT * FROM test_rowcount WHERE A = ?"; 24 $stmt->execute(array('A')); 30 $stmt = $dbh->prepare('UPDATE test_rowcount SET A="A" WHERE A != ?'); 31 $stmt->execute(array('A'));
|
/php-src/ext/pcre/tests/ |
H A D | preg_filter.phpt | 6 $subject = array('1', 'a', '2', 'b', '3', 'A', 'B', '4'); 8 $replace = array('A:$0', 'B:$0', 'C:$0'); 16 string(5) "A:C:1" 20 string(3) "A:2" 24 string(3) "A:3" 26 string(3) "A:4"
|
/php-src/Zend/tests/type_declarations/dnf_types/redundant_types/ |
H A D | less_restrive_type_constraint_already_present001.phpt | 2 A less restrictive type constrain is part of the DNF type 001 6 interface A {} 9 function test(): (A&B)|A {} 14 Fatal error: Type A&B is redundant as it is more restrictive than type A in %s on line %d
|
H A D | less_restrive_type_constraint_already_present002.phpt | 2 A less restrictive type constrain is part of the DNF type 002 6 interface A {} 9 function test(): A|(A&B) {} 14 Fatal error: Type A&B is redundant as it is more restrictive than type A in %s on line %d
|
/php-src/sapi/cgi/tests/ |
H A D | bug61605.phpt | 11 header("A: first"); 12 header("A: second", TRUE); 14 header("A: third", FALSE); 16 header_remove("A"); 26 [1] => A: second 31 [1] => A: second 32 [2] => A: third
|
/php-src/ext/standard/tests/array/ |
H A D | array_chunk_variation25.phpt | 18 string(1) "A" 35 string(1) "A" 67 string(1) "A" 99 string(1) "A" 133 string(1) "A" 156 string(1) "A" 179 string(1) "A" 204 string(1) "A" 224 string(1) "A" 244 string(1) "A" [all …]
|