/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 37 self->stream = php_stream_open_wrapper(self->file_name, in MYSQLND_METHOD() 60 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD() 132 self->m->close(self); in MYSQLND_METHOD() 133 self->m->open(self, TRUE); in MYSQLND_METHOD() 157 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD() 234 self->m->close(self); in MYSQLND_METHOD() 235 self->m->open(self, TRUE); in MYSQLND_METHOD() 287 self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, ">%s", func_name); in MYSQLND_METHOD() 345 …self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s", *func_name… in MYSQLND_METHOD() 432 self->m->log_va(self, __LINE__, __FILE__, 0, "info : ", in MYSQLND_METHOD() [all …]
|
/PHP-7.4/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 41 if (gzeof(self->gz_file)) { in php_gziop_read() 60 assert(self != NULL); in php_gziop_seek() 77 if (self->gz_file) { in php_gziop_close() 79 self->gz_file = NULL; in php_gziop_close() 81 if (self->stream) { in php_gziop_close() 83 self->stream = NULL; in php_gziop_close() 86 efree(self); in php_gziop_close() 134 self = emalloc(sizeof(*self)); in php_stream_gzopen() 138 if (self->gz_file) { in php_stream_gzopen() 150 gzclose(self->gz_file); in php_stream_gzopen() [all …]
|
/PHP-7.4/Zend/tests/grammar/ |
H A D | semi_reserved_007.phpt | 2 Edge case: self::self, self::parent, parent::self semi reserved constants access 7 const self = "self"; 11 echo self::self, PHP_EOL; 12 echo self::parent, PHP_EOL; 20 echo parent::self, PHP_EOL; 30 self 33 self
|
H A D | regression_007.phpt | 14 public function self() { 23 (new Foo)->self()::new()->self()->self()::use 35 Foo::self 37 Foo::self 38 Foo::self
|
/PHP-7.4/ext/spl/tests/ |
H A D | iterator_041a.phpt | 13 if (self::$fail == $state) 22 self::fail(0, __FUNCTION__); 24 self::fail(1, __FUNCTION__); 29 self::fail(2, __FUNCTION__); 35 self::fail(3, __FUNCTION__); 41 self::fail(4, __FUNCTION__); 47 self::fail(5, __FUNCTION__); 65 self::$fail = 7; 66 while(self::$fail < 10) 79 self::$fail = $skip[self::$fail]; [all …]
|
H A D | iterator_041.phpt | 13 if (self::$fail == $state) 22 self::fail(0, __FUNCTION__); 24 self::fail(1, __FUNCTION__); 29 self::fail(2, __FUNCTION__); 35 self::fail(3, __FUNCTION__); 41 self::fail(4, __FUNCTION__); 47 self::fail(5, __FUNCTION__); 65 self::$fail = 0; 66 while(self::$fail < 10) 79 self::$fail = $skip[self::$fail]; [all …]
|
H A D | iterator_041b.phpt | 13 if (self::$fail == $state) 22 self::fail(0, __FUNCTION__); 24 self::fail(1, __FUNCTION__); 29 self::fail(2, __FUNCTION__); 35 self::fail(3, __FUNCTION__); 41 self::fail(4, __FUNCTION__); 47 self::fail(5, __FUNCTION__); 65 self::$fail = 0; 66 while(self::$fail < 10) 79 self::$fail = $skip[self::$fail]; [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug68652.phpt | 9 if (isset(self::$instance)) { 10 return self::$instance; 12 return self::$instance = new self(); 24 if (isset(self::$instance)) { 25 return self::$instance; 27 return self::$instance = new self(); 31 if (!isset(self::$instance)) return;
|
H A D | bug45910.phpt | 2 Bug #45910 (Cannot declare self-referencing constant) 10 const DDD = self::AAA; 13 self::BBB => 'a', 14 self::CCC => 'b', 15 self::DDD => self::AAA 19 self::$foo;
|
H A D | self_method_or_prop_outside_class.phpt | 2 Accessing self:: properties or methods outside a class 9 self::${$str . "bar"}; 14 unset(self::${$str . "bar"}); 19 isset(self::${$str . "bar"}); 24 self::{$str . "bar"}(); 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 D | bug45910_2.phpt | 2 Bug #45910.2 (Cannot declare self-referencing constant) 10 const DDD = self::AAA; 13 self::BBB => 'a', 14 self::CCC => 'b', 15 self::DDD => 11 19 self::$foo;
|
H A D | class_name_as_scalar_error_007.phpt | 2 Cannot access self::class when no class scope is active 7 var_dump(self::class); 12 var_dump([self::class]); 19 Cannot use "self" when no class scope is active 20 Cannot use "self" when no class scope is active
|
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 | 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
|
/PHP-7.4/ext/zip/ |
H A D | zip_stream.c | 53 if (self->za && self->zf) { in php_zip_ops_read() 98 if (self->zf) { in php_zip_ops_close() 100 self->zf = NULL; in php_zip_ops_close() 103 if (self->za) { in php_zip_ops_close() 105 self->za = NULL; in php_zip_ops_close() 108 efree(self); in php_zip_ops_close() 239 self = emalloc(sizeof(*self)); in php_stream_zip_open() 242 self->zf = zf; in php_stream_zip_open() 325 self = emalloc(sizeof(*self)); in php_stream_zip_opener() 327 self->za = za; in php_stream_zip_opener() [all …]
|
/PHP-7.4/main/ |
H A D | rfc1867.c | 247 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer() 248 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer() 251 self->buf_begin = self->buffer; in fill_buffer() 254 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer() 259 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() 298 self->buf_begin = self->buffer; in multipart_buffer_new() 341 self->bytes_in_buffer -= (self->buf_begin - line); in next_line() 346 if (self->bytes_in_buffer < self->bufsize) { in next_line() 409 if (!find_boundary(self, self->boundary)) { in multipart_buffer_headers() 620 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read() [all …]
|
/PHP-7.4/Zend/tests/array_unpack/ |
H A D | classes.phpt | 7 public const FOO = [0, ...self::ARR, 4]; 9 public static $bar = [...self::ARR]; 13 public const A = [...self::B]; 14 public const B = [...self::A]; 46 Exception: Cannot declare self-referencing constant 'self::B'
|
/PHP-7.4/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);
|
H A D | constants_scope_001.phpt | 13 echo "self::FATAL = " . self::FATAL; 20 echo "self::FATAL = " . self::FATAL; 33 self::FATAL = Fatal error 34 self::FATAL = Worst error
|
/PHP-7.4/main/streams/ |
H A D | plain_wrapper.c | 174 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int() 175 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_fd_int() 182 self->fd = fd; in _php_stream_fopen_from_fd_int() 194 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_file_int() 195 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_file_int() 250 if (self->fd >= 0 && do_fstat(self, 0) == 0) { in detect_is_seekable() 251 self->is_seekable = !(S_ISFIFO(self->sb.st_mode) || S_ISCHR(self->sb.st_mode)); in detect_is_seekable() 252 self->is_pipe = S_ISFIFO(self->sb.st_mode); in detect_is_seekable() 316 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_pipe() 317 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_pipe() [all …]
|
/PHP-7.4/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 …]
|