Home
last modified time | relevance | path

Searched refs:X (Results 76 – 100 of 552) sorted by relevance

12345678910>>...23

/PHP-8.2/Zend/tests/type_declarations/dnf_types/variance/
H A Dinvalid1.phpt9 interface X {}
14 public function foo(): (B&C)|X {
21 public function foo(): (A&C)|X {
28 Fatal error: Declaration of FooChild::foo(): (A&C)|X must be compatible with Foo::foo(): (B&C)|X in…
H A Dinvalid_covariance_drop_type2.phpt9 interface X {}
14 public function foo(): (A&B&C)|X {
21 public function foo(): (A&B)|X {
28 Fatal error: Declaration of FooChild::foo(): (A&B)|X must be compatible with Foo::foo(): (A&B&C)|X
H A Dinvalid_invariance2.phpt6 interface X {}
8 class A implements X, Y {}
12 public (X&Y)|B $prop;
21 Fatal error: Type of Test2::$prop must be (X&Y)|B (as in class Test) in %s on line %d
H A Dvalid9.phpt11 function method1(): (X&Traversable)|string {}
12 function method2(): int|(X&MyIterator) {}
18 …patibility between Test2::method2(): (X&MyIterator)|int and Test::method2(): Traversable|array|int…
H A Dinvalid_covariance_intersection_to_union2.phpt6 interface X {}
9 class TestOne implements X, Y {}
13 public function foo(): X&Y;
23 Fatal error: Declaration of B::foo(): TestOne|int must be compatible with A::foo(): X&Y in %s on li…
/PHP-8.2/ext/reflection/tests/
H A DReflectionClass_getDefaultProperties_001.phpt56 class X {
61 public $pubC = "pubC in X";
62 protected $protC = "protC in X";
63 private $privC = "privC in X";
176 ---- Static properties in X ----
179 [statPubC] => stat pubC in X
185 ---- Default properties in X ----
188 [statPubC] => stat pubC in X
191 [pubC] => pubC in X
192 [protC] => protC in X
[all …]
H A DReflectionClass_isInstance_basic.phpt11 class X {}
13 $classes = array("A", "B", "C", "I", "X");
18 "myX" => new X );
48 is myA a X? bool(false)
49 is myB a X? bool(false)
50 is myC a X? bool(false)
51 is myX a X? bool(true)
/PHP-8.2/Zend/tests/type_declarations/intersection_types/variance/
H A Dinvalid_invariance2.phpt6 interface X {}
8 class A implements X, Y {}
11 public X&Y $prop;
20 Fatal error: Type of Test2::$prop must be X&Y (as in class Test) in %s on line %d
H A Dinvalid_covariance_intersection_to_union2.phpt6 interface X {}
9 class TestOne implements X, Y {}
13 public function foo(): X&Y;
23 Fatal error: Declaration of B::foo(): TestOne|int must be compatible with A::foo(): X&Y in %s on li…
/PHP-8.2/ext/standard/tests/strings/
H A Dsprintf_basic9.phpt15 $format11 = "%X";
16 $format22 = "%X %X";
17 $format33 = "%X %X %X";
H A Dbug75075.phpt2 Bug #75075 (unpack with X* causes infinity loop)
5 var_dump(unpack("X*", ""));
8 Warning: unpack(): Type X: '*' ignored in %sbug75075.php on line %d
/PHP-8.2/ext/opcache/tests/jit/
H A Dgh10271.phpt14 $sol['X']['k']=-222.45470924306;
15 $sol['X']['e']=-8.1787760034414;
16 $sol['X'][1]=-0.020231298698539;
33 $x = $sol['X']['k']*$tang['KSI'] + $sol['X']['e']*$tang['ETA'] + $sol['X'][1];
H A Ddefined_001.phpt14 $a = defined("X");
15 $b = defined("X");
16 if (defined("X")) {
21 if (!defined("X")) {
/PHP-8.2/Zend/tests/
H A Dbug70179.phpt6 class X {
11 (new X)();
15 object(X)#1 (0) {
H A Dbug33257.phpt7 class X {
14 //$arr1 = X::getArr();
15 array_splice(X::getArr(), 1, 1);
16 print_r(X::getArr());
H A Dindirect_reference_this.phpt5 class X {
8 $x = new X;
12 object(X)#%d (0) {
H A Dget_class_methods_001.phpt6 abstract class X {
12 class Y extends X {
16 var_dump(get_class_methods('X'));
22 var_dump(get_class_methods('X'));
/PHP-8.2/Zend/tests/type_declarations/union_types/variance/
H A Dinvalid_003.phpt6 class X {}
7 class Y extends X {}
13 public function method(): X|string {}
18 Fatal error: Declaration of B::method(): X|string must be compatible with A::method(): Y|string in …
/PHP-8.2/ext/ffi/tests/
H A D016.phpt10 FFI::cdef("struct X {void x();};");
16 FFI::cdef("struct X {struct X x;};");
22 FFI::cdef("struct X {struct X *ptr;};");
/PHP-8.2/Zend/tests/type_declarations/dnf_types/redundant_types/
H A Dinheritence.phpt6 interface X {}
10 function test(): (A&X)|(B&X) {}
H A Dduplicate_class_alias_type_runtime.phpt7 interface X {}
10 function foo(): (X&A)|(X&B) {}
/PHP-8.2/Zend/tests/type_declarations/
H A Dtyped_properties_class_loading.phpt7 public X $propX;
23 class X {}
26 $test->propX = new X;
46 Cannot assign stdClass to property Test::$propX of type X
47 object(X)#3 (0) {
/PHP-8.2/ext/reflection/tests/types/
H A Dpure_intersection_type_implicitly_nullable.phpt20 function foo(X&Y $foo = null) {
28 Type (X&Y)|null is ReflectionUnionType:
30 Type X&Y is ReflectionIntersectionType:
32 Name: X
33 String: X
/PHP-8.2/ext/gmp/tests/
H A Dbug80560.phpt67 var_dump(gmp_init('0X', 16));
100 $function('0X');
101 echo $function, ' failed with 0X', \PHP_EOL;
118 $function('0X', 1);
119 echo $function, ' failed with 0X', \PHP_EOL;
136 $function('0X', 1);
137 echo $function, ' arg 1 failed with 0X', \PHP_EOL;
152 $function(1, '0X');
170 $function('0X', 1, 1);
186 $function(1, '0X', 1);
[all …]
/PHP-8.2/ext/spl/tests/
H A Dfilesystemiterator_flags.phpt21 printf("%08X\n", $it->getFlags());
22 printf("%08X\n", ($it->getFlags() & FileSystemIterator::CURRENT_MODE_MASK));
23 printf("%08X\n", ($it->getFlags() & FileSystemIterator::KEY_MODE_MASK));
24 printf("%08X\n", ($it->getFlags() & FileSystemIterator::OTHER_MODE_MASK));

Completed in 20 milliseconds

12345678910>>...23