Home
last modified time | relevance | path

Searched refs:self (Results 126 – 150 of 398) sorted by relevance

12345678910>>...16

/PHP-8.1/Zend/tests/
H A Dbug60573_2.phpt2 Bug #60573 (type hinting with "self" keyword causes weird errors) -- variation 2
7 public function setSelf(self $s) { }
46 public function setSelf(self $s) { }
H A Drestore_error_reporting.phpt7 @eval('class self {}');
14 Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d
H A Dbug41633_2.phpt6 const A = self::B;
11 Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
H A Dbug41633_3.phpt2 Bug #41633.3 (Crash instantiating classes with self-referencing constants)
12 Fatal error: Uncaught Error: Cannot declare self-referencing constant Foo::B in %s:%d
H A Dbug69676.phpt2 Bug #69676: Resolution of self::FOO in class constants not correct
7 const myDynConst = self::myConst;
H A Dno_class_const_propagation_in_closures.phpt2 self:: class constants should not be propagated into closures, due to scope rebinding
11 return self::C;
H A Dbug30451.phpt20 var_dump(self::method());
23 var_dump(self::$property);
H A Dbug60139.phpt19 $self = $this;
20 $this->x = function() use ($self) {};
H A Dbug48770_3.phpt20 call_user_func_array(array($this, 'self::func2'), array($str));
21 call_user_func_array(array($this, 'self::func3'), array($str));
24 call_user_func_array(array($this, 'self::inexistent'), array($str));
H A Dbug71622.phpt20 var_dump(is_callable("self::$method"));
21 self::$method();
H A Dbug70957.phpt2 Bug #70957 (self::class can not be resolved with reflection for abstract class)
8 function bar($a = self::class) {}
/PHP-8.1/Zend/tests/traits/
H A Dno_static_arg_binding.phpt2 Don't statically bind arguments for self:: calls in traits
11 self::method($i);
H A Dbug76539.phpt2 Bug #76539 (Trait attribute is set incorrectly when using self::class with another string)
6 protected $attr = self::class . 'Test';
/PHP-8.1/Zend/tests/return_types/
H A Dinheritance004.phpt2 Internal covariant return type of self
6 public static function test() : self {
/PHP-8.1/ext/ffi/tests/
H A Dlist.phpt14 if (is_null(self::$ffi)) {
15 self::$ffi =
25 $node = FFI::addr(self::$ffi->new("dlist", false));
44 $node = FFI::addr(self::$ffi->new("dlist", false));
/PHP-8.1/ext/reflection/tests/
H A DReflectionReference_bug78263.phpt2 Bug #78263: Handling of self-referential array special case
6 // The case of a directly self-referential array is special and will
H A Dbug53915.phpt8 const B = self::A;
17 const B = self::A;
H A Dgh11937_1.phpt9 const CASES = [self::One, self::Two];
H A Dbug45765.phpt2 Fixed bug #45765 (ReflectionObject with default parameters of self::xxx cause an error)
13 function test($a = self::BAR) {
54 Parameter #0 [ <optional> $a = self::BAR ]
/PHP-8.1/Zend/tests/type_declarations/variance/
H A Dstatic_variance_failure.phpt2 Failure case for static variance: Replace static with self
10 public function test(): self {}
/PHP-8.1/ext/mysqlnd/
H A Dmysqlnd_debug.h26 enum_func_status (*open)(MYSQLND_DEBUG * self, bool reopen);
27 void (*set_mode)(MYSQLND_DEBUG * self, const char * const mode);
28 enum_func_status (*log)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
31 MYSQLND_DEBUG * self, unsigned int line, const char * const file,
34 bool (*func_enter)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
36 …enum_func_status (*func_leave)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, u…
37 enum_func_status (*close)(MYSQLND_DEBUG * self);
38 enum_func_status (*free_handle)(MYSQLND_DEBUG * self);
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_043.phpt2 Trying to assign to a static 'self' typed property on a trait must not fixate the type to the trait
7 public static self $selfProp;
8 public static ?self $selfNullProp;
45 Cannot assign stdClass to property Test::$selfProp of type self
48 Cannot assign stdClass to property Test::$selfNullProp of type ?self
/PHP-8.1/tests/classes/
H A Dconstants_visibility_002.phpt8 var_dump(self::protectedConst);
11 var_dump(self::protectedConst);
H A Dconstants_visibility_003.phpt8 var_dump(self::privateConst);
11 var_dump(self::privateConst);
/PHP-8.1/ext/opcache/tests/jit/
H A Dnoval_001.phpt19 if (self::X) {
22 if (self::X) {

Completed in 35 milliseconds

12345678910>>...16