Home
last modified time | relevance | path

Searched refs:X (Results 26 – 50 of 512) sorted by relevance

12345678910>>...21

/PHP-8.1/Zend/tests/type_declarations/intersection_types/variance/
H A Dvalid5.phpt6 interface X {}
9 class TestOne implements X, Y {}
10 class TestTwo implements X, Y {}
14 public function foo(TestOne|TestTwo $param): X&Y;
19 public function foo(X&Y $param): TestOne|TestTwo;
24 public function foo(X $param): TestTwo;
34 public function foo(X $param): TestTwo;
H A Dinvalid_covariance_intersection_to_union1.phpt6 interface X {}
9 class TestOne implements X, Y {}
10 class TestTwo implements X {}
14 public function foo(): X&Y;
24 Fatal error: Declaration of B::foo(): TestOne|TestTwo must be compatible with A::foo(): X&Y in %s o…
/PHP-8.1/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error4.phpt9 public function method(): X {}
17 } else if ($class == 'X') {
18 class X {
21 var_dump(new X);
23 class Y extends X {
36 object(X)#2 (0) {
39 Fatal error: Declaration of Y::method(): A must be compatible with X::method(): B in %s on line %d
H A Dclass_order_autoload_error8.phpt2 Inheritance failure because X inherits from wrong class
17 function m(): X {}
21 } elseif ($class == 'X') {
22 class X extends A {}
23 var_dump(new X);
36 object(X)#2 (0) {
39 Fatal error: Declaration of B::m(): X must be compatible with A::m(): B in %s on line %d
H A Dclass_order_autoload3.phpt9 public function method(): X {}
17 } else if ($class == 'X') {
18 class X {
21 var_dump(new X);
23 class Y extends X {
36 object(X)#2 (0) {
H A Dclass_order_autoload_error5.phpt9 public function method(): X {}
17 } else if ($class == 'X') {
18 class X {
21 var_dump(new X);
23 class Y extends X {
41 object(X)#2 (0) {
44 Fatal error: Declaration of Y::method(Z $a) must be compatible with X::method(Y $a) in %s on line %d
H A Dclass_order_autoload4.phpt6 // Same as autoload3 test case, but with X, Y being interfaces.
10 public function method(): X {}
18 } else if ($class == 'X') {
19 interface X {
22 var_dump(interface_exists('X'));
24 interface Y extends X {
/PHP-8.1/ext/dom/tests/
H A Dbug28721.phpt132 name (value): b (X)
137 name (value): #text (X)
159 name (value): b (X)
164 name (value): #text (X)
203 name (value): X ()
240 name (value): X ()
258 name (value): b (X)
317 name (value): b (X)
391 name (value): X ()
424 name (value): X ()
[all …]
/PHP-8.1/ext/reflection/tests/
H A Dintersection_types.phpt16 function test1(): X&Y&Z&Traversable&Countable { }
19 public X&Y&Countable $prop;
42 Type X&Y&Z&Traversable&Countable:
44 Name: X
45 String: X
59 Type X&Y&Countable:
61 Name: X
62 String: X
70 Type X&Y&Countable:
72 Name: X
[all …]
H A DReflectionObject_isInstance_basic.phpt7 class X {}
9 $classes = array("A", "B", "X");
13 "myX" => new X );
31 is myA a X? bool(false)
32 is myB a X? bool(false)
33 is myX a X? bool(true)
/PHP-8.1/Zend/tests/type_declarations/intersection_types/
H A Dassigning_intersection_types.phpt6 interface X {}
10 class TestParent implements X, Y {}
15 public X&Y&Z $prop;
17 public function method1(X&Y $a): X&Y&Z {
20 public function method2(X $a): X&Y {
49 Cannot assign TestParent to property A::$prop of type X&Y&Z
H A Dtyped_reference.phpt6 interface X {}
10 class A implements X, Y, Z {}
11 class B implements X, Y {}
14 public X&Y $y;
15 public X&Z $z;
30 Cannot assign B to reference held by property Test::$z of type X&Z
H A Dadded_interface_intersection_type.phpt6 interface X {}
10 class A implements X, Y, Z {}
13 public X&Y $intersect;
16 function foo(): X&Y {
20 function bar(X&Y $o): void {
/PHP-8.1/Zend/tests/type_declarations/union_types/
H A Dmultiple_classes.phpt7 public X|Y|Z|int $prop;
8 public function method(X|Y|Z|int $arg): X|Y|Z|int {
41 class X {}
44 $test->prop = new X;
46 var_dump($test->method(new X));
70 Cannot assign stdClass to property Test::$prop of type X|Y|Z|int
71 Test::method(): Argument #1 ($arg) must be of type X|Y|Z|int, stdClass given, called in %s on line …
72 object(X)#4 (0) {
74 object(X)#6 (0) {
/PHP-8.1/Zend/
H A Dbench.php114 $X[$i] = $i;
117 $Y[$i] = $X[$i];
127 $X[$i] = $i; ++$i;
128 $X[$i] = $i; ++$i;
129 $X[$i] = $i; ++$i;
130 $X[$i] = $i; ++$i;
131 $X[$i] = $i; ++$i;
133 $X[$i] = $i; ++$i;
134 $X[$i] = $i; ++$i;
135 $X[$i] = $i; ++$i;
[all …]
H A DREADME.md87 OP<X>_TYPE
90 get_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
92 get_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
94 get_obj_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
96 get_obj_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
97 IS_OP<X>_TMP_FREE()
99 FREE_OP<X>()
100 FREE_OP(free_op<X>)
101 FREE_OP<X>_IF_VAR()
102 FREE_VAR(free_op<X>)
[all …]
/PHP-8.1/ext/standard/tests/serialize/
H A Dbug55798.phpt7 $a->{0} = 'X';
16 string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}"
17 string(1) "X"
18 string(51) "O:8:"stdClass":2:{s:1:"0";s:1:"X";s:1:"1";s:1:"Y";}"
19 string(1) "X"
/PHP-8.1/ext/ffi/tests/
H A D018.phpt10 FFI::cdef("struct X {struct X x[2];};");
16 FFI::cdef("struct X {struct X *ptr[2];};");
24 FFI\ParserException: Incomplete struct "X" at line 1
H A D017.phpt10 var_dump(FFI::new("struct X {void x();}"));
15 var_dump(FFI::new("struct X {struct X x;}"));
20 var_dump(FFI::new("struct X {struct X *ptr;}"));
29 object(FFI\CData:struct X)#%d (1) {
/PHP-8.1/Zend/tests/
H A Dbug76430.phpt7 const X = __METHOD__;
11 const X = __METHOD__;
16 var_dump(Foo::X);
17 var_dump(Bar::X);
H A Dns_065.phpt5 use X\Y as test, X\Z as test2;
13 X\Y\foo
14 X\Z\foo
H A Dns_010.phpt5 namespace X;
6 use X as Y;
19 new \X\Foo();
22 \X\Foo::bar();
25 echo \X\Foo::C;
28 echo \X\Foo::$var;
H A Dclass_constant_inheritance_mutable_data.phpt12 const X = 'X' . self::Y;
21 var_dump(B::X, B::X2);
24 class X {
27 class Y extends X {
29 var_dump(X::C, Y::C);
/PHP-8.1/ext/standard/tests/strings/
H A Dvsprintf_basic9.phpt13 $format11 = "%X";
14 $format22 = "%X %X";
15 $format33 = "%X %X %X";
/PHP-8.1/Zend/tests/constants/final_constants/
H A Dfinal_const5.phpt8 final public const X = 1;
13 const X = 2;
18 Fatal error: C::X cannot override final constant I::X in %s on line %d

Completed in 72 milliseconds

12345678910>>...21