Home
last modified time | relevance | path

Searched refs:B (Results 26 – 50 of 770) sorted by relevance

12345678910>>...31

/PHP-8.1/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload2.phpt9 public function method() : B {}
12 } else if ($class == 'B') {
13 class B extends A {
16 var_dump(new B);
18 class C extends B {
25 var_dump(new B);
33 object(B)#2 (0) {
35 object(B)#2 (0) {
H A Dclass_order_autoload_error1.phpt11 } else if ($class == 'B') {
12 class B extends A {
13 public function method() : B {}
16 class C extends B {
21 $b = new B;
25 Fatal error: Declaration of B::method(): B must be compatible with A::method(): C in %s on line %d
H A Dclass_order_autoload_error7.phpt9 function m(): B {}
11 } elseif ($class == 'B') {
12 class B extends A {
16 class C extends B {}
20 new B;
24 Fatal error: Could not check compatibility between B::m(): X and A::m(): B, because class X is not …
H A Dclass_order_autoload_error2.phpt10 public function method(B $x) {}
12 } else if ($class == 'B') {
13 class B extends A {
17 class C extends B {
22 $b = new B;
27 Fatal error: Declaration of B::method(C $x) must be compatible with A::method(B $x) in %s on line %d
H A Dclass_order_autoload3.phpt12 } else if ($class == 'B') {
13 class B extends A {
16 var_dump(new B);
24 public function method(): B {}
30 var_dump(new B);
40 object(B)#2 (0) {
42 object(B)#2 (0) {
H A Dclass_order_autoload1.phpt9 public function method() : B {}
12 } else if ($class == 'B') {
13 class B extends A {
16 var_dump(new B);
18 class C extends B {
30 object(B)#2 (0) {
H A Dclass_order_autoload4.phpt13 } else if ($class == 'B') {
14 class B extends A {
17 var_dump(new B);
25 public function method(): B;
31 var_dump(new B);
39 object(B)#2 (0) {
41 object(B)#2 (0) {
/PHP-8.1/ext/mbstring/tests/
H A Dgh10192_utf7imap.phpt63 string(4) "A ?B"
72 string(5) "A - B"
81 string(5) "A 1?B"
99 string(4) "A ?B"
117 string(5) "A 1?B"
153 string(5) "A & B"
162 string(5) "A -?B"
171 string(5) "A ~ B"
180 string(5) "A ? B"
306 string(4) "A ?B"
[all …]
H A Diso2022jp_encoding.phpt51 if (substr($from, 0, 3) == "\x1B(B")
109 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'JIS');
110 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'ISO-2022-JP');
118 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'JIS');
119 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'ISO-2022-JP');
158 $validIso2022jpEscapes = ["\x1B\$@" => true, "\x1B\$B" => true, "\x1B(B" => true, "\x1B(J" => true];
193 testValidString("\x22\x25", "\x1B\$B!B\x1B(B", 'UTF-16BE', $encoding, false);
194 testValidString("\xFF\x0D", "\x1B\$B!]\x1B(B", 'UTF-16BE', $encoding, false);
195 testValidString("\xFF\xE0", "\x1B\$B!q\x1B(B", 'UTF-16BE', $encoding, false);
196 testValidString("\xFF\xE1", "\x1B\$B!r\x1B(B", 'UTF-16BE', $encoding, false);
[all …]
/PHP-8.1/Zend/tests/
H A Dlsb_022.phpt13 class B extends A {
15 echo "B\n";
25 B::foo();
28 B
29 B
30 B
31 B
32 B
H A Dbug30828.phpt31 class B extends A {
45 $b = new B();
47 B::bar();
51 #1 %sbug30828.php(42): B->__construct()
53 B->__construct
55 #1 %sbug30828.php(43): B->foo()
57 B->foo
59 #1 %sbug30828.php(44): B::bar()
61 B::bar
H A Dbug66719.phpt13 class B extends A
24 B::who();
26 call_user_func(array(B::class, 'parent::who'));
30 B::who();
32 call_user_func(array(B::class, 'parent::who'));
38 string(1) "B"
41 string(1) "B"
H A Dbug44653.phpt9 namespace B;
13 class B {
20 B::fooBar();
22 \B\fooBar();
29 B\fooBar
30 B\fooBar
H A Dbug76860.phpt13 class B extends A {
15 new B;
18 Notice: Accessing static property B::$a as non static in %sbug76860.php on line 7
20 Warning: Undefined property: B::$a in %s on line %d
22 Notice: Accessing static property B::$b as non static in %sbug76860.php on line 7
24 Warning: Undefined property: B::$b in %s on line %d
26 Notice: Accessing static property B::$c as non static in %sbug76860.php on line 7
28 Warning: Undefined property: B::$c in %s on line %d
H A Dbug60833.phpt13 class B extends A {
14 static $x = "B";
22 $t = new B();
27 object(B)#%d (4) {
35 object(B)#%d (0) {
38 string(1) "B"
/PHP-8.1/ext/standard/tests/class_object/
H A Dforward_static_call_003.phpt14 class B extends A
16 const NAME = 'B';
30 forward_static_call(array('B', 'test'));
36 B::test();
44 B
45 B
48 B
49 B
/PHP-8.1/Zend/tests/type_declarations/intersection_types/variance/
H A Dinvalid_covariance_drop_type2.phpt7 interface B {}
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-8.1/ext/reflection/tests/
H A Dbug45139.phpt10 class B extends A {
16 class C extends B {
30 $rc = new ReflectionClass('B');
32 var_dump($rp->getDeclaringClass()->getName()); // B
36 var_dump($rp->getDeclaringClass()->getName()); // B
42 $rc = new ReflectionClass('B');
44 var_dump($rp->getDeclaringClass()->getName()); // B
54 string(1) "B"
55 string(1) "B"
57 string(1) "B"
/PHP-8.1/ext/standard/tests/array/
H A Darray_chunk_variation25.phpt20 string(1) "B"
40 string(1) "B"
72 string(1) "B"
104 string(1) "B"
135 string(1) "B"
158 string(1) "B"
181 string(1) "B"
206 string(1) "B"
226 string(1) "B"
246 string(1) "B"
[all …]
/PHP-8.1/ext/standard/tests/general_functions/
H A Dcallbacks_001.phpt14 class B extends A {
16 echo "B\n";
20 class C extends B {
28 $this->call(array('B', 'parent::who'));
32 $this->call(array('B', 'who2'));
88 B
90 B
91 B|parent::who
98 B
99 B|who2
[all …]
/PHP-8.1/ext/standard/tests/serialize/
H A Dbug62836_1.phpt5 $serialized_object='O:1:"A":4:{s:1:"b";O:1:"B":0:{}s:2:"b1";r:2;s:1:"c";O:1:"B":0:{}s:2:"c1";r:4;}';
17 [b] => B Object
21 [b1] => B Object
25 [c] => B Object
29 [c1] => B Object
H A Dbug62836_2.phpt5 $serialized_object='O:1:"A":4:{s:1:"b";O:1:"B":0:{}s:2:"b1";r:2;s:1:"c";O:1:"B":0:{}s:2:"c1";r:4;}';
20 [b] => B Object
24 [b1] => B Object
28 [c] => B Object
32 [c1] => B Object
/PHP-8.1/ext/dom/tests/
H A DDOMNode_insertBefore.phpt16 $e2 = $dom->documentElement->appendChild($dom->createElement("B"));
18 echo "Add new node B\n";
21 echo "Add new node A before B\n";
29 Add new node B
31 <root><B/></root>
32 Add new node A before B
34 <root><A/><B/></root>
/PHP-8.1/Zend/tests/named_params/
H A D__call.phpt23 $test->method(a: 'A', b: 'B');
24 $test->method(b: 'B');
26 Test::method(a: 'A', b: 'B');
27 Test::method(b: 'B');
32 a: A, b: B
33 a: a, b: B
35 a: A, b: B
36 a: a, b: B
/PHP-8.1/Zend/tests/traits/
H A Dlanguage005.phpt16 trait B {
21 echo 'B';
26 use A, B {
27 B::smallTalk insteadof A;
28 A::bigTalk insteadof B;
29 B::bigTalk as talk;

Completed in 45 milliseconds

12345678910>>...31