Home
last modified time | relevance | path

Searched refs:C (Results 101 – 125 of 973) sorted by relevance

12345678910>>...39

/PHP-8.2/Zend/tests/type_declarations/variance/
H A Dinfinite_recursion.phpt11 function test(): C {}
14 class C extends Z implements C {}
17 Fatal error: Declaration of Y::test(): C must be compatible with X::test(): I in %s on line %d
/PHP-8.2/Zend/tests/
H A Dself_in_eval.phpt6 class C {
20 C::f();
26 string(1) "C"
27 string(1) "C"
H A Dtrait_type_errors.phpt16 class C {
19 class P extends C {
22 $c = new C;
41 C::test1(): Return value must be of type int, string returned
42 C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
43 C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
H A Dbug74084.phpt7 $$A += $$B['a'] = &$$C;
10 $$A -= $$B['a'] = &$$C;
16 $$A *= $$B['a'] = &$$C;
22 $$A /= $$B['a'] = &$$C;
28 $$A **= $$B['a'] = &$$C;
H A Dbug64239_4.phpt9 class C extends A {
24 C::Bmethod();
25 C::t2method();
30 #0 %s(%d): C::Bmethod()
H A Dbug78379.phpt5 class C {
17 $e->a = new C;
20 var_dump(new C);
23 object(C)#%d (1) {
H A Dlsb_024.phpt16 class C extends A {
17 public static $value = 'C';
21 C::out();
25 C
/PHP-8.2/Zend/tests/type_declarations/intersection_types/variance/
H A Dinvalid_covariance_drop_type2.phpt8 interface C {}
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 */
27 Fatal error: Declaration of FooChild::foo(): A&B must be compatible with Foo::foo(): A&B&C in %s on…
/PHP-8.2/Zend/tests/type_declarations/dnf_types/variance/
H A Dinvalid_covariance_drop_type2.phpt8 interface C {}
11 class Test implements A, B, C {}
14 public function foo(): (A&B&C)|X {
19 /* This fails because just (A&B) larger than ((A&B)&C) */
28 Fatal error: Declaration of FooChild::foo(): (A&B)|X must be compatible with Foo::foo(): (A&B&C)|X …
/PHP-8.2/ext/reflection/tests/
H A DReflectionClass_getDefaultProperties_001.phpt46 class C extends B {
51 public $pubC = "pubC in C";
52 protected $protC = "protC in C";
53 private $privC = "privC in C";
143 ---- Static properties in C ----
146 [statPubC] => stat pubC in C
156 ---- Default properties in C ----
159 [statPubC] => stat pubC in C
166 [pubC] => pubC in C
167 [protC] => protC in C
[all …]
H A DReflectionClass_getMethod_002.phpt8 class C {
12 $rc = new ReflectionClass("C");
50 var_dump($rc->getMethod(new C));
63 Method C::() does not exist
64 Method C::1() does not exist
65 Method C::1.5() does not exist
66 Method C::1() does not exist
68 ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given
H A DReflectionClass_getProperty_002.phpt8 class C {
12 $rc = new ReflectionClass("C");
50 var_dump($rc->getProperty(new C));
61 Property C::$ does not exist
62 Property C::$1 does not exist
63 Property C::$1.5 does not exist
64 Property C::$1 does not exist
66 ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given
H A DReflectionClass_isInstance_basic.phpt9 class C implements I {}
13 $classes = array("A", "B", "C", "I", "X");
17 "myC" => new C,
40 is myA a C? bool(false)
41 is myB a C? bool(false)
42 is myC a C? bool(true)
43 is myX a C? bool(false)
H A Dbug42976.phpt6 Class C {
13 new C($x); // OK
16 $rc = new ReflectionClass('C');
29 Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line …
32 Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line …
/PHP-8.2/tests/lang/operators/
H A Doverloaded_property_ref.phpt5 class C {
11 $x = new C;
13 $x = new C;
15 $x = new C;
/PHP-8.2/Zend/tests/traits/
H A Dabstract_method_6.phpt10 abstract class C {
14 class D extends C {
20 Fatal error: Class C must implement 1 abstract private method (C::method) in %s on line %d
H A Dabstract_method_10.phpt10 class C {
19 Fatal error: Declaration of C::method(int $x): int must be compatible with T::method(C $x): C in %s…
H A Dabstract_method_9.phpt11 } else if ($class == C::class) {
12 class C {
20 class D extends C {}
24 new C;
/PHP-8.2/ext/mbstring/tests/
H A Dphp_gr_jp_dev_884-2.phpt11 var_dump(mb_ereg_replace("C?$", "Z", "ABC"));
12 var_dump(preg_replace("/C?$/", "Z", "ABC"));
13 var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
14 var_dump(preg_replace("/C*$/", "Z", "ABC"));
/PHP-8.2/ext/opcache/tests/opt/
H A Dinference_003.phpt9 class C implements I {
10 public static function wrap(\Throwable $e): C {
11 return $e instanceof C ? $e : new C($e->getMessage());
/PHP-8.2/Zend/tests/type_declarations/union_types/
H A Dinternal_trait_use_typed_union.phpt8 class C {
12 $o = new C();
15 $prop = new \ReflectionProperty(C::class, 'classUnionProp');
23 object(C)#1 (1) {
/PHP-8.2/ext/pdo/tests/
H A Dpdo_007.phpt21 $db->exec("INSERT INTO test VALUES('C', 'C')");
44 ["C"]=>
47 string(1) "C"
61 ["C"]=>
64 string(1) "C"
/PHP-8.2/tests/classes/
H A Dtype_hinting_005a.phpt5 Class C { function f(array $a) {} }
8 Class D1 extends C { function f(array $a) {} }
11 Class D2 extends C { function f(SomeClass $a) {} }
14 Fatal error: Declaration of D2::f(SomeClass $a) must be compatible with C::f(array $a) in %s on lin…
H A Dstatic_properties_003_error1.phpt5 class C {
6 protected static $y = 'C::$y';
8 $c = new C;
17 Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8
H A Dstatic_properties_003_error2.phpt5 class C {
6 protected static $y = 'C::$y';
8 $c = new C;
17 Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8

Completed in 26 milliseconds

12345678910>>...39