Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 250) sorted by relevance

12345678910

/PHP-5.6/ext/mysqlnd/
H A Dmysqlnd_debug.c31 #define MYSQLND_ZTS(self) TSRMLS_D = (self)->TSRMLS_C argument
47 self->stream = php_stream_open_wrapper(self->file_name, in MYSQLND_METHOD()
71 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD()
143 self->m->close(self); in MYSQLND_METHOD()
144 self->m->open(self, TRUE); in MYSQLND_METHOD()
169 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD()
246 self->m->close(self); in MYSQLND_METHOD()
247 self->m->open(self, TRUE); in MYSQLND_METHOD()
299 self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, ">%s", func_name); in MYSQLND_METHOD()
357self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s", func_name); in MYSQLND_METHOD()
[all …]
/PHP-5.6/ext/zlib/
H A Dzlib_fopen_wrapper.c42 if (gzeof(self->gz_file)) { in php_gziop_read()
63 assert(self != NULL); in php_gziop_seek()
80 if (self->gz_file) { in php_gziop_close()
82 self->gz_file = NULL; in php_gziop_close()
84 if (self->stream) { in php_gziop_close()
86 self->stream = NULL; in php_gziop_close()
89 efree(self); in php_gziop_close()
137 self = emalloc(sizeof(*self)); in php_stream_gzopen()
141 if (self->gz_file) { in php_stream_gzopen()
148 gzclose(self->gz_file); in php_stream_gzopen()
[all …]
/PHP-5.6/scripts/dev/generate-phpt/src/
H A DgtAutoload.php30 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-5.6/ext/spl/tests/
H A Diterator_041a.phpt13 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 Diterator_041.phpt13 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 Diterator_041b.phpt13 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-5.6/ext/zip/
H A Dzip_stream.c51 if (self->za && self->zf) { in php_zip_ops_read()
88 if (self->zf) { in php_zip_ops_close()
90 self->zf = NULL; in php_zip_ops_close()
93 if (self->za) { in php_zip_ops_close()
95 self->za = NULL; in php_zip_ops_close()
98 efree(self); in php_zip_ops_close()
229 self = emalloc(sizeof(*self)); in php_stream_zip_open()
232 self->zf = zf; in php_stream_zip_open()
308 self = emalloc(sizeof(*self)); in php_stream_zip_opener()
310 self->za = za; in php_stream_zip_opener()
[all …]
/PHP-5.6/Zend/tests/
H A Dbug45910.phpt2 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 Dbug68652.phpt9 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 Dbug45910_2.phpt2 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 Dconstant_expressions_self_referencing_array.phpt6 const FOO = [self::BAR];
7 const BAR = [self::FOO];
12 Fatal error: Cannot declare self-referencing constant 'self::FOO' in %s on line %d
H A Dbug64720.phpt8 if (!isset(self::$requests[1])) {
9 self::$requests[1] = new self();
11 return self::$requests[1];
15 unset(self::$requests[1]);
H A Dbug34045.phpt10 self::$instance = $this;
14 if (!(self::$instance instanceof BasicSingleton)) {
16 self::$instance = new $c;
18 return self::$instance;
H A Dbug45186.phpt16 self::ABC();
20 call_user_func(array('self', 'y'));
21 call_user_func('self::y');
34 call_user_func('self::y');
54 Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access self:: when no …
H A Dbug53748.phpt10 if (!isset(self::$instances[$serialize = serialize($config)])) {
11 self::$instances[$serialize] = new self($config);
13 return self::$instances[$serialize];
H A Derrmsg_028.phpt2 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
/PHP-5.6/main/
H A Drfc1867.c246 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer()
247 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer()
250 self->buf_begin = self->buffer; in fill_buffer()
253 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer()
258 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer()
301 self->buf_begin = self->buffer; in multipart_buffer_new()
344 self->bytes_in_buffer -= (self->buf_begin - line); in next_line()
349 if (self->bytes_in_buffer < self->bufsize) { in next_line()
412 if (!find_boundary(self, self->boundary TSRMLS_CC)) { in multipart_buffer_headers()
623 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read()
[all …]
/PHP-5.6/tests/classes/
H A Dconstants_basic_004.phpt17 // 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 Dconstants_scope_001.phpt15 echo "self::FATAL = " . self::FATAL;
22 echo "self::FATAL = " . self::FATAL;
36 self::FATAL = Fatal error
37 self::FATAL = Worst error
/PHP-5.6/ext/spl/internal/
H A Dregexiterator.inc33 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 …]
H A Dcachingiterator.inc47 function __construct(Iterator $it, $flags = self::CALL_TOSTRING)
49 …if ((($flags & self::CALL_TOSTRING) && ($flags & (self::TOSTRING_USE_KEY|self::TOSTRING_USE_CURREN…
50 …|| ((flags & (self::CIT_TOSTRING_USE_KEY|self::CIT_TOSTRING_USE_CURRENT)) == (self::CIT_TOSTRING_U…
74 if ($this->flags & self::CALL_TOSTRING) {
133 if ($this->flags & self::TOSTRING_USE_KEY)
137 else if ($this->flags & self::TOSTRING_USE_CURRENT)
141 if (!$this->flags & self::CALL_TOSTRING)
/PHP-5.6/ext/phar/
H A Dshortarc.php116 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-5.6/main/streams/
H A Dplain_wrapper.c159 self = pemalloc_rel_orig(sizeof(*self), persistent_id); in _php_stream_fopen_from_fd_int()
160 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_fd_int()
161 self->file = NULL; in _php_stream_fopen_from_fd_int()
166 self->fd = fd; in _php_stream_fopen_from_fd_int()
175 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_file_int()
176 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_file_int()
235 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; in _php_stream_fopen_from_fd()
274 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; in _php_stream_fopen_from_file()
301 self = emalloc_rel_orig(sizeof(*self)); in _php_stream_fopen_from_pipe()
302 memset(self, 0, sizeof(*self)); in _php_stream_fopen_from_pipe()
[all …]
/PHP-5.6/ext/reflection/tests/
H A DReflectionObject_isInstantiable_variation.phpt8 return new ReflectionObject(new self);
15 return new ReflectionObject(new self);
22 return new ReflectionObject(new self);
29 return new ReflectionObject(new self);
36 return new ReflectionObject(new self);
43 return new ReflectionObject(new self);
50 return new ReflectionObject(new self);
/PHP-5.6/ext/bz2/
H A Dbz2.c143 bz2_ret = BZ2_bzread(self->bz_file, buf, count); in php_bz2iop_read()
169 BZ2_bzclose(self->bz_file); in php_bz2iop_close()
172 if (self->stream) { in php_bz2iop_close()
176 efree(self); in php_bz2iop_close()
184 return BZ2_bzflush(self->bz_file); in php_bz2iop_flush()
202 struct php_bz2_stream_data_t *self; in _php_stream_bz2open_from_BZFILE() local
204 self = emalloc(sizeof(*self)); in _php_stream_bz2open_from_BZFILE()
206 self->stream = innerstream; in _php_stream_bz2open_from_BZFILE()
207 self->bz_file = bz; in _php_stream_bz2open_from_BZFILE()
613 struct php_bz2_stream_data_t *self; in php_bz2_error() local
[all …]

Completed in 61 milliseconds

12345678910