/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 38 self->stream = php_stream_open_wrapper(self->file_name, in MYSQLND_METHOD() 61 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD() 133 self->m->close(self); in MYSQLND_METHOD() 134 self->m->open(self, TRUE); in MYSQLND_METHOD() 158 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD() 235 self->m->close(self); in MYSQLND_METHOD() 236 self->m->open(self, TRUE); in MYSQLND_METHOD() 288 self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, ">%s", func_name); in MYSQLND_METHOD() 346 …self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s", *func_name… in MYSQLND_METHOD() 433 self->m->log_va(self, __LINE__, __FILE__, 0, "info : ", in MYSQLND_METHOD() [all …]
|
/PHP-7.0/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 43 if (gzeof(self->gz_file)) { in php_gziop_read() 65 assert(self != NULL); in php_gziop_seek() 82 if (self->gz_file) { in php_gziop_close() 84 self->gz_file = NULL; in php_gziop_close() 86 if (self->stream) { in php_gziop_close() 88 self->stream = NULL; in php_gziop_close() 91 efree(self); in php_gziop_close() 139 self = emalloc(sizeof(*self)); in php_stream_gzopen() 143 if (self->gz_file) { in php_stream_gzopen() 150 gzclose(self->gz_file); in php_stream_gzopen() [all …]
|
/PHP-7.0/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; 31 self 34 self
|
H A D | regression_007.phpt | 14 public function self() { 23 (new Foo)->self()::new()->self()->self()::use 36 Foo::self 38 Foo::self 39 Foo::self
|
/PHP-7.0/scripts/dev/generate-phpt/src/ |
H A D | gtAutoload.php | 30 self::$classPath = dirname(__FILE__); 32 if (substr(self::$classPath, -1) != '/') { 33 self::$classPath .= '/'; 36 if (file_exists(self::$classPath . 'gtClassMap.php')) { 37 include self::$classPath . 'gtClassMap.php'; 38 self::$classMap = $gtClassMap; 57 if (isset(self::$classMap[$class])) { 58 include self::$classPath . self::$classMap[$class];
|
/PHP-7.0/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.0/ext/zip/ |
H A D | zip_stream.c | 51 if (self->za && self->zf) { in php_zip_ops_read() 96 if (self->zf) { in php_zip_ops_close() 98 self->zf = NULL; in php_zip_ops_close() 101 if (self->za) { in php_zip_ops_close() 103 self->za = NULL; in php_zip_ops_close() 106 efree(self); in php_zip_ops_close() 237 self = emalloc(sizeof(*self)); in php_stream_zip_open() 240 self->zf = zf; in php_stream_zip_open() 315 self = emalloc(sizeof(*self)); in php_stream_zip_opener() 317 self->za = za; in php_stream_zip_opener() [all …]
|
H A D | php_zip.c | 1422 if (self) { in ZIPARCHIVE_METHOD() 1475 if (!self) { in ZIPARCHIVE_METHOD() 1507 if (!self) { in ZIPARCHIVE_METHOD() 1550 if (!self) { in ZIPARCHIVE_METHOD() 1581 if (!self) { in ZIPARCHIVE_METHOD() 1636 if (!self) { in php_zip_add_from_pattern() 1756 if (!self) { in ZIPARCHIVE_METHOD() 1799 if (!self) { in ZIPARCHIVE_METHOD() 1857 if (!self) { in ZIPARCHIVE_METHOD() 1883 if (!self) { in ZIPARCHIVE_METHOD() [all …]
|
/PHP-7.0/Zend/tests/ |
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 | 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 | 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();
|
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::FOO' 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 | bug64720.phpt | 8 if (!isset(self::$requests[1])) { 9 self::$requests[1] = new self(); 11 return self::$requests[1]; 15 unset(self::$requests[1]);
|
/PHP-7.0/main/ |
H A D | rfc1867.c | 251 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer() 252 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer() 255 self->buf_begin = self->buffer; in fill_buffer() 258 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer() 263 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() 306 self->buf_begin = self->buffer; in multipart_buffer_new() 349 self->bytes_in_buffer -= (self->buf_begin - line); in next_line() 354 if (self->bytes_in_buffer < self->bufsize) { in next_line() 417 if (!find_boundary(self, self->boundary)) { in multipart_buffer_headers() 628 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read() [all …]
|
/PHP-7.0/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 | 15 echo "self::FATAL = " . self::FATAL; 22 echo "self::FATAL = " . self::FATAL; 36 self::FATAL = Fatal error 37 self::FATAL = Worst error
|
/PHP-7.0/main/streams/ |
H A D | plain_wrapper.c | 172 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int() 173 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_fd_int() 174 self->file = NULL; in _php_stream_fopen_from_fd_int() 179 self->fd = fd; in _php_stream_fopen_from_fd_int() 191 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_file_int() 192 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_file_int() 254 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; in _php_stream_fopen_from_fd() 293 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; in _php_stream_fopen_from_file() 320 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_pipe() 321 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_pipe() [all …]
|
/PHP-7.0/ext/spl/internal/ |
H A D | regexiterator.inc | 33 self::GET_MATCH, self::ALL_MATCHES, self::SPLIT) */ 34 private $flags; /**< special flags (self::USE_KEY) */ 46 * @param mode operation mode (one of self::MATCH, self::GET_MATCH, 47 * self::ALL_MATCHES, self::SPLIT) 48 * @param flags special flags (self::USE_KEY) 77 case self::MATCH: 80 case self::GET_MATCH: 84 case self::ALL_MATCHES: 88 case self::SPLIT: 92 case self::REPLACE: [all …]
|
/PHP-7.0/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-7.0/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 702 if (self) { in php_xmlwriter_string_arg() 741 if (self) { in php_xmlwriter_end() 780 if (self) { in PHP_FUNCTION() 846 if (self) { in PHP_FUNCTION() 890 if (self) { in PHP_FUNCTION() 935 if (self) { in PHP_FUNCTION() 987 if (self) { in PHP_FUNCTION() 1047 if (self) { in PHP_FUNCTION() 1101 if (self) { in PHP_FUNCTION() 1172 if (self) { in PHP_FUNCTION() [all …]
|
/PHP-7.0/ext/pdo_oci/ |
H A D | oci_statement.c | 649 r = OCILobWrite(self->E->svc, self->E->err, self->lob, in oci_blob_write() 669 r = OCILobRead(self->E->svc, self->E->err, self->lob, in oci_blob_read() 692 OCILobClose(self->E->svc, self->E->err, self->lob); in oci_blob_close() 695 efree(self->E); in oci_blob_close() 696 efree(self); in oci_blob_close() 706 OCILobFlushBuffer(self->E->svc, self->E->err, self->lob, 0); in oci_blob_flush() 737 struct oci_lob_self *self = ecalloc(1, sizeof(*self)); in oci_create_lob_stream() local 740 self->lob = lob; in oci_create_lob_stream() 745 self->E->svc = self->S->H->svc; in oci_create_lob_stream() 746 self->E->err = self->S->err; in oci_create_lob_stream() [all …]
|