/PHP-8.2/Zend/tests/ |
H A D | bug69676_3.phpt | 2 Bug #69676: Resolution of self::FOO in class constants not correct (variation) 10 const selfN = self::N; 22 const selfN = self::N; 26 const indSelfN = self::selfN; 36 const selfN = self::N; 40 const exprSelfN = "expr" . self::selfN; 50 const selfN = self::N; 55 public $prop = self::selfN;
|
H A D | bug64720.phpt | 8 if (!isset(self::$requests[1])) { 9 self::$requests[1] = new self(); 11 return self::$requests[1]; 15 unset(self::$requests[1]);
|
H A D | bug45186.phpt | 16 self::ABC(); 20 call_user_func(array('self', 'y')); 21 call_user_func('self::y'); 35 call_user_func('self::y'); 51 Deprecated: Use of "self" in callables is deprecated in %s on line %d 55 Deprecated: Use of "self" in callables is deprecated in %s on line %d 61 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | bug45186_2.phpt | 12 self::ABC(); 16 call_user_func(array('self', 'y')); 17 call_user_func('self::y'); 35 call_user_func('self::y'); 51 Deprecated: Use of "self" in callables is deprecated in %s on line %d 55 Deprecated: Use of "self" in callables is deprecated in %s on line %d 60 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | self_in_eval.phpt | 2 self etc. can be used in eval() in a class scope 11 var_dump(self::FOO); 12 var_dump(self::$bar); 13 var_dump(self::class);
|
H A D | constant_expressions_self_referencing_array.phpt | 6 const FOO = [self::BAR]; 7 const BAR = [self::FOO]; 12 Fatal error: Uncaught Error: Cannot declare self-referencing constant self::BAR in %s:%d
|
H A D | bug34045.phpt | 10 self::$instance = $this; 14 if (!(self::$instance instanceof BasicSingleton)) { 16 self::$instance = new $c; 18 return self::$instance;
|
H A D | bug75079.phpt | 2 Bug #75079: self keyword leads to incorrectly generated TypeError when in closure in trait 8 public function selfDo(self ...$Selfs) 11 function (self $Self) : self
|
H A D | self_class_const_in_unknown_scope.phpt | 2 Use of self::class inside a constant in an unknown scope 9 const FOO = self::class; 16 const BAR = self::class; 23 Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:%d
|
H A D | self_class_const_outside_class.phpt | 2 Accessing self::FOO in a free function 6 var_dump(self::FOO); 10 Fatal error: Cannot use "self" when no class scope is active in %s on line %d
|
H A D | errmsg_028.phpt | 2 errmsg: cannot use 'self' as class name 6 class self { 12 Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d
|
H A D | self_instanceof_outside_class.phpt | 2 instanceof self outside a class 8 new stdClass instanceof self; 17 Cannot access "self" when no class scope is active
|
/PHP-8.2/tests/classes/ |
H A D | constants_basic_004.phpt | 17 // Static and instance array using class constants with self 18 public static $sa_b = array(self::KEY => self::VALUE); 19 public $a_b = array(self::KEY => self::VALUE); 28 // Static and instance array using class constants with self (constants should be inherited) 29 public static $sa_c_self = array(self::KEY => self::VALUE); 30 public $a_c_self = array(self::KEY => self::VALUE);
|
/PHP-8.2/main/streams/ |
H A D | plain_wrapper.c | 181 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int() 182 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_fd_int() 189 self->fd = fd; in _php_stream_fopen_from_fd_int() 201 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_file_int() 202 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_file_int() 257 if (self->fd >= 0 && do_fstat(self, 0) == 0) { in detect_is_seekable() 258 self->is_seekable = !(S_ISFIFO(self->sb.st_mode) || S_ISCHR(self->sb.st_mode)); in detect_is_seekable() 259 self->is_pipe = S_ISFIFO(self->sb.st_mode); in detect_is_seekable() 331 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_pipe() 332 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_pipe() [all …]
|
/PHP-8.2/ext/phar/ |
H A D | shortarc.php | 116 fseek($fp, self::LEN); 135 $info = self::_unpack($m); 138 if ($f & self::GZ) { 145 if ($f & self::BZ2) { 152 $temp = self::tmpdir(); 165 self::$temp = $temp; 166 self::$origdir = getcwd(); 171 self::_removeTmpFiles($temp, getcwd()); 192 include self::START; 260 if ($entry[4] & self::GZ) { [all …]
|
/PHP-8.2/ext/spl/tests/ |
H A D | bug65006.phpt | 2 Bug #65006: spl_autoload_register fails with multiple callables using self, same method 8 spl_autoload_register(array('self','load')); 15 spl_autoload_register(array('self','load')); 26 Deprecated: Use of "self" in callables is deprecated in %s on line %d 28 Deprecated: Use of "self" in callables is deprecated in %s on line %d
|
H A D | spl_autoload_called_scope.phpt | 12 echo "self=" . self::class, ", static=", static::class, "\n"; 32 self=Test, static=Test 33 self=Test, static=Test2
|
/PHP-8.2/ext/pdo_oci/ |
H A D | oci_statement.c | 629 r = OCILobWrite(self->E->svc, self->E->err, self->lob, in oci_blob_write() 649 sword r = OCILobRead2(self->E->svc, self->E->err, self->lob, in oci_blob_read() 655 sword r = OCILobRead(self->E->svc, self->E->err, self->lob, in oci_blob_read() 665 self->offset += self->csfrm == 0 ? byte_amt : char_amt; in oci_blob_read() 683 OCILobClose(self->E->svc, self->E->err, self->lob); in oci_blob_close() 697 OCILobFlushBuffer(self->E->svc, self->E->err, self->lob, 0); in oci_blob_flush() 728 struct oci_lob_self *self = ecalloc(1, sizeof(*self)); in oci_create_lob_stream() local 736 self->E->svc = self->S->H->svc; in oci_create_lob_stream() 737 self->E->err = self->S->err; in oci_create_lob_stream() 739 OCILobCharSetForm(self->S->H->env, self->S->err, self->lob, &self->csfrm); in oci_create_lob_stream() [all …]
|
/PHP-8.2/Zend/tests/enum/ |
H A D | implements.phpt | 18 self::Hearts, self::Diamonds => 'Red', 19 self::Clubs, self::Spades => 'Black',
|
H A D | backed-implements.phpt | 18 self::Hearts, self::Diamonds => 'Red', 19 self::Clubs, self::Spades => 'Black',
|
/PHP-8.2/ext/standard/tests/class_object/ |
H A D | forward_static_call_001.phpt | 19 echo self::NAME, "\n"; 24 echo self::NAME, "\n"; 25 forward_static_call(array('self', 'test')); 29 echo self::NAME, "\n"; 40 echo self::NAME, "\n"; 70 Deprecated: Use of "self" in callables is deprecated in %s on line %d 84 Deprecated: Use of "self" in callables is deprecated in %s on line %d
|
/PHP-8.2/ext/opcache/tests/jit/ |
H A D | bug81249.phpt | 48 return self::ERROR; 51 return self::FINISHED; 66 return self::CONTINUE; 75 $index = self::JIS0208_INDEX; 78 $index = self::JIS0212_INDEX; 94 return self::ERROR; 104 return self::CONTINUE; 107 return self::ERROR;
|
/PHP-8.2/ext/bz2/ |
H A D | bz2.c | 78 just_read = BZ2_bzread(self->bz_file, buf, to_read); in php_bz2iop_read() 132 BZ2_bzclose(self->bz_file); in php_bz2iop_close() 135 if (self->stream) { in php_bz2iop_close() 139 efree(self); in php_bz2iop_close() 147 return BZ2_bzflush(self->bz_file); in php_bz2iop_flush() 165 struct php_bz2_stream_data_t *self; in _php_stream_bz2open_from_BZFILE() local 167 self = emalloc(sizeof(*self)); in _php_stream_bz2open_from_BZFILE() 169 self->stream = innerstream; in _php_stream_bz2open_from_BZFILE() 173 self->bz_file = bz; in _php_stream_bz2open_from_BZFILE() 570 struct php_bz2_stream_data_t *self; in php_bz2_error() local [all …]
|
/PHP-8.2/ext/reflection/tests/ |
H A D | bug71018.phpt | 10 return self::$data; 28 var_dump("T2::self = " . T2::getDataBySelf()); 36 var_dump("T2::self = " . T2::getDataBySelf()); 40 string(16) "T2::self = hello" 42 string(16) "T2::self = hello"
|
/PHP-8.2/Zend/tests/return_types/ |
H A D | 024.phpt | 2 Return type of self is not allowed in function 6 function test(): self {} 9 Fatal error: Cannot use "self" when no class scope is active in %s on line 3
|