Home
last modified time | relevance | path

Searched refs:A (Results 76 – 100 of 1323) sorted by relevance

12345678910>>...53

/PHP-7.4/Zend/tests/
H A DselfParent_002.phpt5 class A {
6 const myConst = "const in A";
14 class B extends A {
23 A::test();
26 string(10) "const in A"
27 string(10) "const in A"
H A Dbug38220.phpt17 class A {
40 echo "A::__destruct()\n";
55 $obj1 = new A(1);
58 $obj2 = new A(2);
64 A Object
70 A::__destruct()
72 A Object
79 A Object
85 A::__destruct()
87 A Object
H A Dbug44653.phpt5 namespace A;
10 class A {
17 var_dump(\A\XX);
18 A::fooBar();
19 \A\fooBar();
27 A\fooBar
H A Dbug64239_3.phpt5 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 Dns_039.phpt5 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 Dclosure_044.phpt5 /* 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'); $d(); echo "\n";
37 $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
[all …]
/PHP-7.4/ext/reflection/tests/
H A Dbug48336.phpt5 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 DReflectionClass_implementsInterface_001.phpt9 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 Dbug79487.phpt13 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 DReflectionClass_toString_002.phpt8 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 DReflectionClass_export_array_bug72222.phpt5 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 Dbug53915.phpt7 const A = 1;
8 const B = self::A;
16 const A = 1;
17 const B = self::A;
25 [A] => 1
H A DReflectionObject_isInstance_basic.phpt5 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-7.4/Zend/tests/type_declarations/
H A Dtyped_properties_076.phpt6 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-7.4/ext/pdo/tests/
H A Dpdo_011.phpt89 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 …]
H A Dpdo_007.phpt18 $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"
/PHP-7.4/ext/standard/tests/serialize/
H A Dbug31402.phpt17 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];
39 ["A"]=>
64 ["A"]=>
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error4.phpt7 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-7.4/Zend/tests/return_types/
H A Dinheritance001.phpt6 class A {
7 function foo(): A {}
10 class B extends A {
14 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
H A Dinheritance003.phpt6 interface A {
7 function foo(): A;
10 class B implements A {
14 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
H A Dinheritance002.phpt6 abstract class A {
7 abstract function foo(): A;
10 class B extends A {
14 Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d
/PHP-7.4/ext/standard/tests/general_functions/
H A Dbug52138.data8 A=1
9 B=A "A" A
/PHP-7.4/Zend/tests/traits/
H A Dstatic_forward_static_call.phpt10 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-7.4/ext/spl/tests/
H A Dregexiterator_getregex.phpt20 $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-7.4/tests/classes/
H A D__call_005.phpt5 class A {
12 class B extends A {
14 A::test1(1,'a');
26 In A::__call(test1, array(1,a))
29 In A::__call(test2, array(1,a))
32 In A::__call(test3, array(1,a))
35 In A::__call(test4, array(1,a))

Completed in 40 milliseconds

12345678910>>...53