Home
last modified time | relevance | path

Searched refs:A (Results 151 – 175 of 1746) sorted by relevance

12345678910>>...70

/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload1.phpt7 if ($class === 'A') {
8 class A {
11 var_dump(new A);
13 class B extends A {
28 object(A)#2 (0) {
H A Dclass_order_autoload4.phpt8 if ($class == 'A') {
9 class A {
12 var_dump(new A);
14 class B extends A {
20 public function method(): A;
35 object(A)#2 (0) {
/php-src/Zend/tests/attributes/
H A D014_class_const_group.phpt8 #[A(1, X)]
9 public const A = 1, B = 2;
14 $rp1 = new ReflectionClassConstant('C', 'A');
23 string(1) "A"
30 string(1) "A"
/php-src/Zend/tests/
H A Dexception_026.phpt5 class A {
10 $a = new A;
14 new A;
19 #0 %s(11): A->__destruct()
24 #0 %s(11): A->__destruct()
H A Dlsb_021.phpt5 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 Dbug69832.phpt7 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 Dclosure_043.phpt9 $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 Dbug54624.phpt5 class A
7 function foo(A $param) {
12 class_alias('A', 'AliasA');
15 class B extends A
/php-src/ext/intl/tests/
H A Dbug70452.phpt8 var_dump(IntlChar::charName("A"));
10 var_dump(IntlChar::charName("A", IntlChar::UNICODE_CHAR_NAME));
13 var_dump(IntlChar::charName("A", IntlChar::UNICODE_10_CHAR_NAME));
15 var_dump(IntlChar::charName("A", 12345));
18 string(22) "LATIN CAPITAL LETTER A"
19 string(22) "LATIN CAPITAL LETTER A"
/php-src/ext/reflection/tests/
H A Dbug48336.phpt5 class A {
8 class B extends A {
26 $classes = ['A', 'B', 'C', 'D', 'E', 'F'];
33 print('N/A');
39 A => N/A
H A Dbug43926.phpt11 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 DReflectionClass_getProperty_004.phpt8 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 …]
/php-src/Zend/tests/prop_const_expr/
H A Ddefault_args.phpt6 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 Dproperty_initializer.phpt6 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 Dstatic_property_initializer.phpt6 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;
/php-src/Zend/tests/traits/
H A Dbug60165d.phpt8 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-src/Zend/tests/type_declarations/intersection_types/
H A Dparameter.phpt6 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
/php-src/Zend/tests/enum/
H A Dno-write-properties-cache-slot.phpt7 case A;
17 Test::A->modify();
21 var_dump(Test::A->name);
25 string(1) "A"
27 string(1) "A"
/php-src/Zend/tests/type_declarations/union_types/variance/
H A Dvalid.phpt9 class A {
14 public function method2(B|string $a): A|string {}
15 public function method3(Y|B $a): X|A {}
18 class B extends A {
23 public function method2(A|string $a): B|string {}
24 public function method3(A|X $a): B|Y {}
/php-src/tests/classes/
H A Dproperty_override_protectedStatic_public.phpt5 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 Dproperty_override_protectedStatic_private.phpt5 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 Dproperty_override_protectedStatic_protected.phpt5 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 Dproperty_override_publicStatic_private.phpt5 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 Dproperty_override_publicStatic_protected.phpt5 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 Dproperty_override_publicStatic_public.phpt5 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

Completed in 72 milliseconds

12345678910>>...70