/PHP-8.0/ext/reflection/tests/ |
H A D | ReflectionClass_getProperties_001.phpt | 8 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 D | ReflectionClass_getMethods_001.phpt | 8 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 D | ReflectionClass_getConstants_basic.phpt | 5 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 D | ReflectionClass_getDocComment_001.phpt | 19 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 D | ReflectionClass_getConstant_basic.phpt | 5 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 D | ReflectionClass_newInstanceWithoutConstructor.phpt | 7 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 D | bug48336.phpt | 5 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 D | ReflectionObject_getConstants_basic.phpt | 5 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 D | ReflectionClass_getMethod_001.phpt | 8 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 D | ReflectionObject_getConstant_basic.phpt | 5 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 D | ReflectionObject_getConstructor_basic.phpt | 5 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 D | ReflectionClass_isSubclassOf_error2.phpt | 2 ReflectionClass::isSubclassOf() - fixed crash for unbound anonymous class 5 class X { 7 return new class() extends Base {}; 10 class Base {} 12 $base = Base::class; 13 foreach (get_declared_classes() as $class) { 14 if (strpos($class, '@anonymous') === false) { 17 echo "Checking for $class\n"; 19 $rc = new ReflectionClass($class); 24 // Should not show up in get_declared_classes until the anonymous class is bound.
|
/PHP-8.0/ext/phar/tests/ |
H A D | phpinfo_004.phpt | 30 <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr> 34 <tr><td class="e">gzip compression </td><td class="v">enabled </td></tr> 39 <tr class="v"><td> 44 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</… 45 <tr><td class="e">phar.readonly</td><td class="v">Off</td><td class="v">Off</td></tr> 46 <tr><td class="e">phar.require_hash</td><td class="v">Off</td><td class="v">Off</td></tr> 52 <tr><td class="e">Phar API version </td><td class="v">1.1.1 </td></tr> 61 <tr class="v"><td> 66 <tr><td class="e">phar.cache_list</td><td class="v"><i>no value</i></td><td class="v"><i>no value</… 67 <tr><td class="e">phar.readonly</td><td class="v">On</td><td class="v">Off</td></tr> [all …]
|
/PHP-8.0/Zend/tests/anon/ |
H A D | 003.phpt | 6 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.0/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error3.phpt | 7 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 D | class_order_autoload5.phpt | 8 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.0/ext/spl/tests/ |
H A D | spl_autoload_014.phpt | 5 $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
|
H A D | bug61697.phpt | 6 function f1($class) { echo "f1: [[$class]]\n"; } 7 function f2($class) { echo "f2: [[$class]]\n"; } 11 spl_autoload_register(function($class) { echo "cf1: [[$class]]\n"; }); 12 spl_autoload_register(function($class) { echo "cf2: [[$class]]\n"; });
|
/PHP-8.0/Zend/tests/traits/ |
H A D | abstract_method_9.phpt | 6 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.0/Zend/tests/ |
H A D | bug66811.phpt | 2 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 D | class_name_as_scalar.phpt | 2 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 D | bug79022.phpt | 5 function my_autoloader($class) { 9 if ($class == 'Foo') { 10 eval("class Foo extends Bar{}"); 13 if ($class == 'Bar') { 14 eval("class Bar {}"); 17 if ($class == 'Dummy') { 18 eval ("class Dummy implements iFoo {}"); 25 if ($class == 'iFoo') { 29 if ($class == 'iBar') {
|
/PHP-8.0/ext/standard/tests/array/ |
H A D | array_map_object3.phpt | 7 * 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 D | array_map_object1.phpt | 8 * 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 …]
|
/PHP-8.0/ext/opcache/tests/ |
H A D | preload.inc | 18 abstract class c { 22 class x extends c implements a, b { 37 class Y { 41 class Z { 46 class Z2 extends Z {} 48 class TraitAliasTest { 54 // Create reference to a property declared in an internal parent class. 55 class MyException extends Exception { 62 return new class {}; 66 eval("class Foo {}"); [all …]
|