Home
last modified time | relevance | path

Searched refs:class (Results 1 – 25 of 2425) sorted by relevance

12345678910>>...97

/PHP-8.2/ext/reflection/tests/
H A DReflectionClass_getProperties_001.phpt8 class pubf {
15 class protf {
22 class privf {
32 echo "Reflecting on class $class: \n";
45 ["class"]=>
52 ["class"]=>
62 ["class"]=>
69 ["class"]=>
79 ["class"]=>
86 ["class"]=>
[all …]
H A DReflectionClass_getMethods_001.phpt8 class pubf {
15 class protf {
22 class privf {
32 echo "Reflecting on class $class: \n";
45 ["class"]=>
52 ["class"]=>
62 ["class"]=>
69 ["class"]=>
79 ["class"]=>
86 ["class"]=>
[all …]
H A DReflectionClass_getConstants_basic.phpt5 class C {
8 class D extends C {
10 class E extends D {
12 class F extends E {
15 class X {
20 echo "Constants from class $class: \n";
26 Constants from class C:
31 Constants from class D:
36 Constants from class E:
41 Constants from class F:
[all …]
H A DReflectionClass_getDocComment_001.phpt19 class A {}
22 class B extends A { }
24 class C extends B {}
38 class D implements I {}
50 foreach ($classes as $class) {
51 echo "\n\n---> Doc comment for class $class:\n";
59 ---> Doc comment for class A:
71 ---> Doc comment for class B:
75 ---> Doc comment for class C:
79 ---> Doc comment for class D:
[all …]
H A DReflectionClass_getConstant_basic.phpt5 class C {
8 class D extends C {
10 class E extends D {
12 class F extends E {
15 class X {
20 echo "Reflecting on class $class:\n";
27 Reflecting on class C:
30 Reflecting on class D:
33 Reflecting on class E:
36 Reflecting on class F:
[all …]
H A DReflectionClass_newInstanceWithoutConstructor.phpt7 class Foo
15 $class = new ReflectionClass('Foo');
16 var_dump($class->newInstanceWithoutConstructor());
18 $class = new ReflectionClass('StdClass');
19 var_dump($class->newInstanceWithoutConstructor());
21 $class = new ReflectionClass('DateTime');
22 var_dump($class->newInstanceWithoutConstructor());
24 $class = new ReflectionClass('Generator');
31 final class Bar extends ArrayObject {
34 $class = new ReflectionClass('Bar');
[all …]
H A DReflectionObject_getConstants_basic.phpt5 class C {
8 class D extends C {
10 class E extends D {
12 class F extends E {
15 class X {
19 foreach($classes as $class) {
20 echo "Reflecting on instance of class $class: \n";
27 Reflecting on instance of class C:
32 Reflecting on instance of class D:
37 Reflecting on instance of class E:
[all …]
H A DReflectionClass_getMethod_001.phpt8 class pubf {
15 class protf {
22 class privf {
32 echo "Reflecting on class $class: \n";
53 ["class"]=>
59 ["class"]=>
65 ["class"]=>
73 ["class"]=>
79 ["class"]=>
85 ["class"]=>
[all …]
H A Dbug48336.phpt5 class A {
8 class B extends A {
12 class C extends B {
16 class D extends C {
19 class E extends D {
22 class F extends E {
26 $class = 'A';
27 for($class = 'A'; $class <= 'F'; $class ++) {
28 print($class.' => ');
30 $rp = new ReflectionProperty($class, 'prop');
H A DReflectionObject_getConstant_basic.phpt5 class C {
8 class D extends C {
10 class E extends D {
12 class F extends E {
15 class X {
19 foreach($classes as $class) {
20 echo "Reflecting on instance of class $class: \n";
27 Reflecting on instance of class C:
30 Reflecting on instance of class D:
33 Reflecting on instance of class E:
[all …]
H A DReflectionObject_getConstructor_basic.phpt5 class NewCtor {
9 class ExtendsNewCtor extends NewCtor {
12 class X {
16 class Y extends X {
19 class B {
23 class C extends B {
27 class D1 extends C {
31 class D2 extends C {
37 foreach ($classes as $class) {
38 $rc = new ReflectionObject(new $class);
[all …]
H A DReflectionClass_isSubclassOf_error2.phpt2 ReflectionClass::isSubclassOf() - fixed crash for unbound anonymous class
5 if (getenv('SKIP_PRELOAD')) die('skip Anon class is linked during preloading');
9 class X {
11 return new class() extends Base {};
14 class Base {}
16 $base = Base::class;
17 foreach (get_declared_classes() as $class) {
18 if (strpos($class, '@anonymous') === false) {
21 echo "Checking for $class\n";
23 $rc = new ReflectionClass($class);
[all …]
H A DReflectionClass_getMethods_003.phpt8 class C {
49 ["class"]=>
56 ["class"]=>
63 ["class"]=>
70 ["class"]=>
79 ["class"]=>
86 ["class"]=>
93 ["class"]=>
100 ["class"]=>
109 ["class"]=>
[all …]
/PHP-8.2/ext/phar/tests/
H A Dphpinfo_004.phpt31 <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr>
35 <tr><td class="e">gzip compression </td><td class="v">enabled </td></tr>
36 <tr><td class="e">bzip2 compression </td><td class="v">enabled </td></tr>
40 <tr class="v"><td>
45 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</…
46 <tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr>
47 <tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr>
62 <tr class="v"><td>
67 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</…
68 <tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr>
[all …]
/PHP-8.2/Zend/tests/enum/
H A Denum_exists.phpt10 class Baz {}
20 var_dump(enum_exists(Foo::class));
21 var_dump(enum_exists(Foo::Bar::class));
22 var_dump(enum_exists(Baz::class));
23 var_dump(enum_exists(Qux::class));
24 var_dump(enum_exists(Quux::class, false));
25 var_dump(enum_exists(Quux::class, true));
27 var_dump(enum_exists(Quuz::class, true));
34 Triggered autoloader with class Qux
37 Triggered autoloader with class Quux
[all …]
/PHP-8.2/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error3.phpt7 if ($class == 'A') {
8 class A {
11 } else if ($class == 'B') {
12 class B extends A {
15 } else if ($class == 'X') {
16 class X {
19 } else if ($class == 'Y') {
20 class Y extends X {
23 } else if ($class == 'Q') {
24 class Q {
[all …]
H A Dclass_order_autoload5.phpt8 if ($class == 'A') {
9 class A {
13 } else if ($class == 'B') {
14 class B extends A {
18 } else if ($class == 'X') {
19 class X {
23 } else if ($class == 'Y') {
24 class Y extends X {
28 } else if ($class == 'Q') {
29 class Q {
[all …]
/PHP-8.2/Zend/tests/anon/
H A D003.phpt6 var_dump(new class($i) {
15 object(class@%s)#1 (1) {
19 object(class@%s)#1 (1) {
23 object(class@%s)#1 (1) {
27 object(class@%s)#1 (1) {
31 object(class@%s)#1 (1) {
35 object(class@%s)#1 (1) {
39 object(class@%s)#1 (1) {
43 object(class@%s)#1 (1) {
47 object(class@%s)#1 (1) {
[all …]
/PHP-8.2/ext/spl/tests/
H A Dspl_autoload_014.phpt5 $closure = function($class) {
6 echo "closure called with class $class\n";
9 class Autoloader {
14 public function __invoke($class) {
15 echo ("Autoloader('{$this->dir}') called with $class\n");
19 class WorkingAutoloader {
20 public function __invoke($class) {
21 echo ("WorkingAutoloader() called with $class\n");
22 eval("class $class { }");
42 closure called with class TestX
/PHP-8.2/Zend/tests/
H A Dbug66811.phpt2 Bug #66811: Cannot access static::class in lambda, written outside of a class
5 class A {
8 var_dump(self::class);
9 var_dump(static::class);
14 class B extends A {}
19 $g = $f->bindTo(null, A::class);
23 var_dump(self::class);
24 var_dump(static::class);
27 $bar = $foo->bindTo(null, A::class);
H A Dclass_name_as_scalar.phpt2 class name as scalar from ::class keyword
7 class One {
9 const A = self::class;
10 const B = Two::class;
12 class Two extends One {
20 class Three extends Two {
23 $one = self::class,
24 $two = Baz::class,
39 var_dump(One::class); // resolve from use
43 $class = One::class; // assign class as scalar to var
[all …]
H A Dgh14961.phpt6 class C {
7 public $class = C::class;
11 $c->/* comment */class = 42;
12 var_dump($c->/** doc comment */class);
15 class);
18 class);
19 var_dump($c?->/* comment */class);
/PHP-8.2/Zend/tests/traits/
H A Dabstract_method_9.phpt6 spl_autoload_register(function($class) {
7 if ($class == T::class) {
11 } else if ($class == C::class) {
12 class C {
19 } else if ($class == D::class) {
20 class D extends C {}
/PHP-8.2/ext/standard/tests/array/
H A Darray_map_object3.phpt7 * 1) child class method using parent object
8 * 2) parent class method using child object
9 * 3) child class method using parent class
10 * 4) parent class method using child class
16 class ParentClass
27 class ChildClass extends ParentClass
45 echo "-- accessing parent method from child class --\n";
69 -- accessing parent method from child class --
78 -- accessing child method from parent class --
80 -- accessing parent method using child class object --
[all …]
H A Darray_map_object1.phpt8 * 2) class without members
10 * 4) abstract and child class
17 class SimpleClass
35 class SimpleClassPri
45 class SimpleClassPro
55 class EmptyClass
61 abstract class AbstractClass
67 // class deriving the above abstract class
78 class FinalClass
88 class StaticClass
[all …]

Completed in 21 milliseconds

12345678910>>...97