Home
last modified time | relevance | path

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

12345678910>>...23

/PHP-8.2/ext/tokenizer/tests/
H A Dtoken_get_all_TOKEN_PARSE_001.phpt8 X::continue;
9 X::$continue;
11 X::continue();
13 X::class;
16 class X {
36 L2: T_STRING X
40 L3: T_STRING X
48 L5: T_STRING X
60 L7: T_STRING X
71 L10: T_STRING X
/PHP-8.2/Zend/tests/type_declarations/dnf_types/
H A Ddnf_2_intersection.phpt7 interface X {}
11 class A implements X, Y {}
15 function foo1((X&Y)|(W&Z) $v): (X&Y)|(W&Z) {
18 function foo2((W&Z)|(X&Y) $v): (W&Z)|(X&Y) {
22 function bar1(): (X&Y)|(W&Z) {
25 function bar2(): (W&Z)|(X&Y) {
62 bar1(): Return value must be of type (X&Y)|(W&Z), C returned
63 bar2(): Return value must be of type (W&Z)|(X&Y), C returned
/PHP-8.2/ext/imap/tests/
H A Dbug80710_1.phpt7 $envelope["from"]= "joe@example.com\n From : X-INJECTED";
8 $envelope["to"] = "foo@example.com\nFrom: X-INJECTED";
9 $envelope["cc"] = "bar@example.com\nFrom: X-INJECTED";
10 $envelope["subject"] = "bar@example.com\n\n From : X-INJECTED";
11 $envelope["x-remail"] = "bar@example.com\nFrom: X-INJECTED";
12 $envelope["something"] = "bar@example.com\nFrom: X-INJECTED";
19 $part2["subtype"] = "octet-stream\nContent-Type: X-INJECTED";
20 $part2["description"] = "some file\nContent-Type: X-INJECTED";
21 $part2["contents.data"] = "ABC\nContent-Type: X-INJECTED";
/PHP-8.2/ext/phar/tests/files/
H A Dfrontcontroller3.phar12 v���������������������a.php���&XX�������������a.jpg���&XX�������������a.phps���&
/PHP-8.2/Zend/tests/type_declarations/intersection_types/
H A Dmissing_interface_intersection_type.phpt6 interface X {}
10 class A implements X {}
13 public X&Y $intersect;
16 function foo(): X&Y {
20 function bar(X&Y $o): void {
48 foo(): Return value must be of type X&Y, A returned
49 Cannot assign A to property Collection::$intersect of type X&Y
50 bar(): Argument #1 ($o) must be of type X&Y, A given, called in %s on line %d
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
/PHP-8.2/ext/reflection/tests/
H A DReflectionClassConstant_getValue.phpt8 const X = self::Y * 2;
12 const X = self::Y * 2;
16 const X = self::Y * 2;
20 var_dump((new ReflectionClassConstant('A', 'X'))->getValue());
21 echo new ReflectionClassConstant('B', 'X');
27 Constant [ public int X ] { 2 }
32 Constant [ public int X ] { 2 }
/PHP-8.2/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.2/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;
/PHP-8.2/Zend/tests/type_declarations/dnf_types/redundant_types/
H A Dduplicate_class_alias_type.phpt6 interface X {}
9 function foo(): (X&A)|(X&B) {}
13 Fatal error: Type X&A is redundant with type X&A in %s on line %d
/PHP-8.2/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.2/ext/reflection/tests/types/
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 …]
/PHP-8.2/Zend/tests/type_declarations/dnf_types/variance/
H A Dvalid5.phpt6 interface X {}
9 class TestOne implements X, Y {}
10 class TestTwo implements X, Y {}
15 public function foo(TestOne|TestTwo|Foo $param): (X&Y)|Foo;
20 public function foo((X&Y)|Foo $param): TestOne|TestTwo|Foo;
25 public function foo(X|Foo $param): TestTwo;
35 public function foo(X|Foo $param): TestTwo;
/PHP-8.2/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.2/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.2/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.2/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
/PHP-8.2/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

Completed in 27 milliseconds

12345678910>>...23