Home
last modified time | relevance | path

Searched refs:class (Results 176 – 200 of 3494) sorted by relevance

12345678910>>...140

/PHP-7.4/tests/classes/
H A Dconstants_visibility_error_003.phpt2 A redeclared class constant must have the same or higher visibility
6 class A {
10 class B extends A {
14 Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 9
H A Dconstants_error_006.phpt2 Basic class support - attempting to modify a class constant by assignment
5 class aclass
10 echo "\nTrying to modify a class constant directly - should be parse error.\n";
H A Dconstants_error_007.phpt2 Basic class support - attempting to create a reference to a class constant
5 class aclass
10 echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
H A Dconstants_visibility_error_004.phpt2 A redeclared class constant must have the same or higher visibility
6 class A {
10 class B extends A {
14 Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on…
H A Dclass_final.phpt2 ZE2 A final class cannot be inherited
6 final class base {
14 class derived extends base {
20 Fatal error: Class derived may not inherit from final class (base) in %s on line %d
H A Dctor_in_interface_03.phpt2 ZE2 A class constructor must keep the signature of base class interfaces
10 abstract class implem implements constr
14 class derived extends implem
H A Dctor_in_interface_04.phpt2 ZE2 A class constructor must keep the signature of base class interfaces
10 class implem implements constr
17 class derived extends implem
/PHP-7.4/Zend/tests/
H A Dbug39542.phpt13 spl_autoload_register(function ($class) {
14 if (!require_once($class.'.inc')) {
15 error_log('Error: Autoload class: '.$class.' not found!');
H A Dclass_alias_008.phpt2 Testing class_alias() with abstract class using an arbitrary class name as alias
6 abstract class foo { }
16 Fatal error: Uncaught Error: Cannot instantiate abstract class foo in %s:%d
H A Dbug64239_2.phpt5 class A {
10 class B {
14 class C extends A {
42 [class] => B
54 [class] => B
H A Dself_in_eval.phpt2 self etc. can be used in eval() in a class scope
6 class C {
13 var_dump(self::class);
14 var_dump(static::class);
H A Dobjects_001.phpt6 class Bar {
40 Notice: Object of class Bar could not be converted to int in %s on line %d
43 Notice: Object of class Bar could not be converted to int in %s on line %d
46 Notice: Object of class Bar could not be converted to int in %s on line %d
49 Notice: Object of class Bar could not be converted to int in %s on line %d
52 Notice: Object of class Bar could not be converted to float in %s on line %d
55 Notice: Object of class Bar could not be converted to float in %s on line %d
58 Notice: Object of class Bar could not be converted to int in %s on line %d
/PHP-7.4/ext/standard/tests/serialize/
H A Dserialization_objects_005.phpt2 Check behaviour of incomplete class
23 echo "\n\n---> Various types of access on complete class:\n" ;
43 echo "\n\n---> Same types of access on incomplete class:\n" ;
67 ---> Various types of access on complete class:
84 ---> Same types of access on incomplete class:
93class definition "C" of the object you are trying to operate on was loaded _before_ unserialize() …
96class definition "C" of the object you are trying to operate on was loaded _before_ unserialize() …
98class definition "C" of the object you are trying to operate on was loaded _before_ unserialize() …
101class definition "C" of the object you are trying to operate on was loaded _before_ unserialize() …
104class definition "C" of the object you are trying to operate on was loaded _before_ unserialize() …
[all …]
/PHP-7.4/ext/spl/tests/
H A Diterator_056.phpt2 SPL: Calling __construct(void) on class extending SPL iterator
8 class myFilterIterator extends FilterIterator {
12 class myCachingIterator extends CachingIterator { }
14 class myRecursiveCachingIterator extends RecursiveCachingIterator { }
16 class myParentIterator extends ParentIterator { }
18 class myLimitIterator extends LimitIterator { }
20 class myNoRewindIterator extends NoRewindIterator {}
H A Dspl_autoload_013.phpt5 $closure = function($class) {
9 class Autoloader {
14 public function __invoke($class) {
15 var_dump("{$this->dir}/$class.php");
36 ["$class"]=>
H A Dbug69264.phpt5 class MyFileInfo extends SplFileInfo {
11 class MyDoublyLinkedList extends SplDoublyLinkedList {
17 class MyObjectStorage extends SplObjectStorage {
23 class MyMultipleIterator extends MultipleIterator {
29 class MyArrayObject extends ArrayObject {
35 class MyArrayIterator extends ArrayIterator {
41 class MyMaxHeap extends SplMaxHeap {
47 class MyPriorityQueue extends SplPriorityQueue {
/PHP-7.4/Zend/tests/traits/
H A Dbug76539.phpt2 Bug #76539 (Trait attribute is set incorrectly when using self::class with another string)
6 protected $attr = self::class . 'Test';
13 class A {
17 class B {
/PHP-7.4/ext/reflection/tests/
H A Dbug71018.phpt5 class T1 {
19 class T2 extends T1 {}
21 $Prop1 = new ReflectionProperty(T1::class, 'data');
22 $Prop2 = new ReflectionProperty(T2::class, 'data');
26 $Prop1->setValue(\T1::class, "world");
27 $Prop2->setValue(\T2::class, 'hello');
H A DReflectionMethod_constructor_basic.phpt6 class NewCtor {
16 class ExtendsNewCtor extends NewCtor {
22 class OldCtor {
31 class ExtendsOldCtor extends OldCtor {
37 class X {
46 class Y extends X {
48 echo "\nInherited method of the same name as the class:\n";
52 class OldAndNewCtor {
69 class NewAndOldCtor {
88 Deprecated: Methods with the same name as their class will not be constructors in a future version …
[all …]
H A DReflectionObject_isInstantiable_variation.phpt6 class noCtor {
12 class publicCtorNew {
19 class protectedCtorNew {
26 class privateCtorNew {
33 class publicCtorOld {
40 class protectedCtorOld {
47 class privateCtorOld {
72 Deprecated: Methods with the same name as their class will not be constructors in a future version …
74 Deprecated: Methods with the same name as their class will not be constructors in a future version …
76 Deprecated: Methods with the same name as their class will not be constructors in a future version …
H A Dbug39001.phpt2 Bug #39001 (ReflectionProperty returns incorrect declaring class for protected properties)
6 class Meta {
9 class CParent extends Meta {
14 class Child extends CParent {
/PHP-7.4/ext/standard/
H A Dphp_dns.h25 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
26 …((int)dns_search(res, dname, class, type, (char *) answer, anslen, (struct sockaddr *)&from, &from…
32 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
33 res_nsearch(res, dname, class, type, answer, anslen);
46 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
47 res_search(dname, class, type, answer, anslen)
/PHP-7.4/ext/standard/tests/array/
H A Duasort_object2.phpt13 * simple class,
14 * child class,
15 * empty class &
16 * static class
43 class SimpleClass
54 class EmptyClass
59 class StaticClass
67 // Abstract class
68 abstract class AbstractClass
74 // Child class extending abstract class
[all …]
/PHP-7.4/ext/opcache/tests/
H A Dbug78937_5.phpt2 Bug #78937.5 (Preloading unlinkable anonymous class can segfault)
16 class Bar {
22 Warning: Can't preload unlinked class Foo: Unknown parent Bar in %spreload_bug78937.inc on line 6
24 Warning: Can't preload unlinked class class@anonymous: Unknown parent Bar in %spreload_bug78937.inc…
/PHP-7.4/Zend/tests/anon/
H A D001.phpt2 declare bare anonymous class
5 var_dump(new class{});
7 object(class@%s)#%d (0) {

Completed in 69 milliseconds

12345678910>>...140