/PHP-8.1/main/streams/ |
H A D | plain_wrapper.c | 180 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int() 181 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_fd_int() 188 self->fd = fd; in _php_stream_fopen_from_fd_int() 200 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_file_int() 201 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_file_int() 256 if (self->fd >= 0 && do_fstat(self, 0) == 0) { in detect_is_seekable() 257 self->is_seekable = !(S_ISFIFO(self->sb.st_mode) || S_ISCHR(self->sb.st_mode)); in detect_is_seekable() 258 self->is_pipe = S_ISFIFO(self->sb.st_mode); in detect_is_seekable() 327 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_pipe() 328 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_pipe() [all …]
|
/PHP-8.1/Zend/tests/ |
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 | 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 | 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 | 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
|
H A D | bug53748.phpt | 10 if (!isset(self::$instances[$serialize = serialize($config)])) { 11 self::$instances[$serialize] = new self($config); 13 return self::$instances[$serialize];
|
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'); 57 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | errmsg_035.phpt | 2 errmsg: cannot use 'self' as interface name 6 class test implements self { 12 Fatal error: Cannot use 'self' as interface name, as it is reserved in %s on line %d
|
H A D | errmsg_030.phpt | 2 errmsg: cannot use 'self' as parent class name 6 class test extends self { 12 Fatal error: Cannot use 'self' as class name, as it is reserved in %s on line %d
|
H A D | special_name_error2.phpt | 6 use Foo\Bar as self; 10 Fatal error: Cannot use Foo\Bar as self because 'self' is a special class name in %s on line %d
|
/PHP-8.1/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.1/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.1/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.1/ext/spl/tests/ |
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.1/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.1/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() 572 struct php_bz2_stream_data_t *self; in php_bz2_error() local [all …]
|
/PHP-8.1/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.1/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
|
/PHP-8.1/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";
|