Home
last modified time | relevance | path

Searched refs:class (Results 326 – 350 of 5459) sorted by relevance

1...<<11121314151617181920>>...219

/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_type_error9.phpt2 Typed class constants (type coercion is unsupported)
5 class S {
12 class A {
25 Cannot assign S to class constant A::S of type string
/php-src/ext/reflection/tests/
H A DReflectionClass_isInstance_basic.phpt5 class A {}
6 class B extends A {}
9 class C implements I {}
11 class X {}
20 foreach ($classes as $class) {
21 $rc = new ReflectionClass($class);
24 echo "is $name a $class? ";
/php-src/ext/soap/tests/SoapServer/
H A Dmissing-options-non-wsdl-mode.phpt8 class ExtendedSoapServer extends SoapServer {}
14 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
19 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
27 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
32 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
40 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
45 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
/php-src/ext/intl/tests/
H A Dresourcebundle_dimension_errors.phpt15 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
20 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
25 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
30 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
35 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
40 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
50 echo $e::class, ': ', $e->getMessage(), PHP_EOL;
/php-src/Zend/tests/lazy_objects/rfc/
H A Drfc_example_011.phpt8 class BlogPost
27 class EntityManager
29 public function getReference(string $class, int $id)
32 $reflector = new ReflectionClass($class);
34 $entity = $reflector->newLazyGhost(function ($entity) use ($class, $id, $reflector) {
35 $data = $this->loadFromDatabase($class, $id);
56 $blogPost = $em->getReference(BlogPost::class, 123);
/php-src/Zend/tests/lazy_objects/
H A Drealize_no_props.phpt6 class C {}
9 class D {}
14 var_dump((new ReflectionClass($obj::class))->isUninitializedLazyObject($obj));
17 var_dump((new ReflectionClass($obj2::class))->isUninitializedLazyObject($obj2));
20 var_dump((new ReflectionClass($obj3::class))->isUninitializedLazyObject($obj3));
35 $obj3 = (new ReflectionClass(C::class))->newLazyGhost(function () {
52 $obj3 = (new ReflectionClass(C::class))->newLazyGhost(function () {
/php-src/Zend/tests/constexpr/
H A Dnew_anon_class.phpt2 New with anonymous class works
6 static $x = new class {};
12 object(class@anonymous)#1 (0) {
/php-src/ext/opcache/tests/
H A Dpreload_trait_multiple_fixup.inc13 class C1 {
17 class C2 extends C1 {
30 class C3 {
33 class C4 extends C3 {}
/php-src/tests/classes/
H A Dabstract_inherit.phpt2 ZE2 A class that inherits an abstract method is abstract
6 abstract class pass {
10 abstract class fail extends pass {
19 Fatal error: Uncaught Error: Cannot instantiate abstract class fail in %s:%d
/php-src/Zend/tests/
H A Dparent_class_name_without_parent.phpt2 Getting parent class name when there is no parent generates an error
8 var_dump(parent::class);
12 class C {
20 Fatal error: Uncaught Error: Cannot use "parent" when current class scope has no parent in %s:5
H A Dstringable_automatic_implementation.phpt6 class Test {
13 var_dump((new ReflectionClass(Test::class))->getInterfaceNames());
15 class Test2 extends Test {
22 var_dump((new ReflectionClass(Test2::class))->getInterfaceNames());
H A Dbug61970_2.phpt6 abstract class Foo {
10 class Bar extends Foo {
14 class Baz extends Bar {
19 Fatal error: Access level to Baz::__construct() must be public (as in class Foo) in %s on line 12
H A Dself_method_or_prop_outside_class.phpt2 Accessing self:: properties or methods outside a class
33 Cannot access "self" when no class scope is active
34 Cannot access "self" when no class scope is active
35 Cannot access "self" when no class scope is active
36 Cannot access "self" when no class scope is active
H A Dbug18556.phpt2 Bug #18556 (Setting locale to 'tr_TR' lowercases class names)
9 class InfoBlob {
24 foreach(get_declared_classes() as $class)
26 if(!class_exists($class))
27 echo "$class No Longer Exists!\n";
H A Dbug33732.phpt2 Bug #33732 (Wrong behavior of constants in class and interface extending)
9 class A implements iA {
12 class B extends A implements iA {
27 class A2 implements iA2 {
30 class B2 extends A2 implements iA2 {
/php-src/Zend/tests/traits/
H A Dconstant_014.phpt2 Cannot override a final trait constant in a class derived from the class that uses the trait
10 class ComposingClass {
15 class DerivedClass extends ComposingClass {
H A Dconstant_020.phpt6 class TestAttribute {
15 class TestClass {
19 $reflection = new \ReflectionClass(TestTrait::class);
22 $reflection = new \ReflectionClass(TestClass::class);
H A Dconstant_015.phpt2 The same name constant of a trait used in a class that inherits a constant defined in a parent can …
10 class BaseClass1 {
14 class DerivedClass1 extends BaseClass1 {
22 class BaseClass2 {
26 class DerivedClass2 extends BaseClass2 {
/php-src/Zend/tests/type_declarations/mixed/inheritance/
H A Dmixed_return_inheritance_success3.phpt6 class Foo
11 class Bar1 extends Foo
16 class Bar3 extends Foo
21 class Bar4 extends Foo
/php-src/Zend/tests/type_declarations/variance/
H A Dparent_in_class_failure1.phpt2 Use of parent inside a class that has / has no parent (failure case 1)
7 class A {
10 class B extends A {
16 Fatal error: Cannot use "parent" when current class scope has no parent in %s on line %d
/php-src/ext/mysqli/tests/
H A Dbug30967.phpt2 Bug #30967 (problems with properties declared in the class extending the class extending MySQLi)
13 class mysql1 extends mysqli {
16 class mysql2 extends mysql1 {
/php-src/ext/date/tests/
H A Doo_001.phpt6 class _d extends DateTime {
10 class _t extends DateTimeZone {
14 class _p extends DatePeriod {
26 echo $e::class, ': ', $e->getMessage(), "\n";
32 echo $e::class, ': ', $e->getMessage(), "\n";
42 echo $e::class, ': ', $e->getMessage(), "\n";
48 echo $e::class, ': ', $e->getMessage(), "\n";
55 echo $e::class, ': ', $e->getMessage(), "\n";
60 echo $e::class, ': ', $e->getMessage(), "\n";
/php-src/Zend/tests/type_declarations/intersection_types/redundant_types/
H A Dinheritence.phpt2 Intersection with child class
6 class A {}
7 class B extends A {}
/php-src/ext/standard/tests/array/
H A Darray_intersect_ukey_variation9.phpt2 Test array_intersect_ukey() function : usage variation - Passing class/object methods to callback
11 class MyClass
23 echo "\n-- Testing array_intersect_ukey() function using class with static method as callback --\n";
27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
34 -- Testing array_intersect_ukey() function using class with static method as callback --
48 -- Testing array_intersect_uassoc() function using class with regular method as callback --
/php-src/ext/standard/
H A Dphp_dns.h23 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
24 …((int)dns_search(res, dname, class, type, (char *) answer, anslen, (struct sockaddr *)&from, &from…
30 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
31 res_nsearch(res, dname, class, type, answer, anslen);
44 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument
45 res_search(dname, class, type, answer, anslen)

Completed in 26 milliseconds

1...<<11121314151617181920>>...219