Searched refs:self (Results 1 - 25 of 42) sorted by relevance

12

/PHP_TRUNK/ext/pdo/tests/
H A Dpdo_test.inc69 $config = self::get_config($file);
73 return self::factory();
/PHP_TRUNK/ext/phar/phar/
H A Dclicommand.inc29 $this->cmds = self::getCommands($this);
30 $this->typs = self::getArgTyps($this);
33 self::error("No command given, check ${argv[0]} help\n");
35 self::error("Unknown command '${argv[1]}', check ${argv[0]} help\n");
49 self::error("Missing argument to parameter '$arg' of command '$command', check ${argv[0]} help\n");
54 self::error("Unknown parameter '${argv[$i]}' to command $command, check ${argv[0]} help\n");
64 self::error("Missing default trailing arguments to command $command, check ${argv[0]} help\n");
73 self::error("Unexpected default arguments to command $command, check ${argv[0]} help\n");
83 self::error($missing);
97 self
[all...]
H A Dpharcommand.inc230 self::notice("PEAR package PHP_Archive: API Version: $apiver.\n");
234 self::notice("PEAR package PHP_Archive: $phpdir.\n");
249 self::notice("PEAR package PHP_Archive: corrupt or inaccessible base dir: $php_dir.\n");
253 self::notice("PEAR package PHP_Archive: $found.\n");
257 self::notice($msg);
259 self::error($msg);
264 return self::cli_arg_typ_file($arg);
278 $arg = self::cli_arg_typ_filenew($arg, $cfg, $key);
280 self::error("Phar files must have file extension '.phar', '.phar.php', '.phar.bz2' or '.phar.gz'.\n");
300 $pharfile = self
[all...]
/PHP_TRUNK/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());
183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
192 include self
[all...]
/PHP_TRUNK/ext/spl/examples/
H A Dcallbackfilteriterator.inc42 public function __construct(Iterator $it, $callback, $mode = self::USE_VALUE, $flags = 0)
60 case self::USE_FALSE;
62 case self::USE_TRUE:
64 case self::USE_VALUE:
65 if($this->flags & self::REPLACE) {
70 case self::USE_KEY:
71 if($this->flags & self::REPLACE) {
77 if($this->flags & self::REPLACE) {
H A Ddualiterator.inc98 case self::CURRENT_ARRAY:
100 case self::CURRENT_LHS:
102 case self::CURRENT_RHS:
104 case self::CURRENT_0:
116 case self::KEY_LHS:
118 case self::KEY_RHS:
120 case self::KEY_0:
173 self::CURRENT_0 | self::KEY_0);
183 $it = new DualIterator($lhs, $rhs, self
[all...]
/PHP_TRUNK/ext/spl/internal/
H A Drecursiveregexiterator.inc28 * @param mode operation mode (one of self::MATCH, self::GET_MATCH,
29 * self::ALL_MATCHES, self::SPLIT)
30 * @param flags special flags (self::USE_KEY)
H A Drecursivetreeiterator.inc33 function __construct(RecursiveIterator $it, $rit_flags = self::BYPASS_KEY, $cit_flags = CachingIterator::CATCH_GET_CHILD, $mode = self::SELF_FIRST)
100 if ($this->rit_flags & self::BYPASS_CURRENT)
114 if ($this->rit_flags & self::BYPASS_KEY)
H A Dregexiterator.inc32 private $mode; /**< operation mode (one of self::MATCH,
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
[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_CURRENT)))
50 || ((flags & (self::CIT_TOSTRING_USE_KEY|self::CIT_TOSTRING_USE_CURRENT)) == (self::CIT_TOSTRING_USE_KEY|self::CIT_TOSTRING_USE_CURRENT)))
74 if ($this->flags & self::CALL_TOSTRING) {
133 if ($this->flags & self
[all...]
H A Dmultipleiterator.inc42 public function __construct($flags = self::MIT_NEED_ALL|self::MIT_KEYS_NUMERIC)
129 $expect = $this->flags & self::MIT_NEED_ALL ? true : false;
168 if ($this->flags & self::MIT_KEYS_ASSOC)
182 else if ($this->flags & self::MIT_NEED_ALL)
212 else if ($this->flags & self::MIT_NEED_ALL)
/PHP_TRUNK/ext/sqlite3/tests/
H A Dstream_test.inc17 $ret = substr(self::$string, $this->position, $count);
29 return array('size' => self::$string_length);
39 return ($this->position >= self::$string_length);
/PHP_TRUNK/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_TRUNK/ext/openssl/tests/
H A DServerClientTestCase.inc33 if (!isset(self::$instance)) {
34 self::$instance = new self($isWorker);
37 return self::$instance;
42 if (!isset(self::$instance)) {
43 self::$instance = $this;
/PHP_TRUNK/ext/bz2/
H A Dbz2.c140 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; local
143 ret = BZ2_bzread(self->bz_file, buf, count);
154 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; local
156 return BZ2_bzwrite(self->bz_file, (char*)buf, count);
161 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; local
165 BZ2_bzclose(self->bz_file);
168 if (self->stream) {
169 php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | (close_handle == 0 ? PHP_STREAM_FREE_PRESERVE_HANDLE : 0));
172 efree(self);
179 struct php_bz2_stream_data_t *self local
198 struct php_bz2_stream_data_t *self; local
599 struct php_bz2_stream_data_t *self; local
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_debug.c32 #define MYSQLND_ZTS(self) TSRMLS_D = (self)->TSRMLS_C
34 #define MYSQLND_ZTS(self)
40 MYSQLND_METHOD(mysqlnd_debug, open)(MYSQLND_DEBUG * self, zend_bool reopen)
42 MYSQLND_ZTS(self);
44 if (!self->file_name) {
48 self->stream = php_stream_open_wrapper(self->file_name,
49 reopen == TRUE || self->flags & MYSQLND_DEBUG_APPEND? "ab":"wb",
51 return self
[all...]
H A Dmysqlnd_debug.h31 enum_func_status (*open)(MYSQLND_DEBUG * self, zend_bool reopen);
32 void (*set_mode)(MYSQLND_DEBUG * self, const char * const mode);
33 enum_func_status (*log)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
35 enum_func_status (*log_va)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
37 zend_bool (*func_enter)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
39 enum_func_status (*func_leave)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, uint64_t call_time);
40 enum_func_status (*close)(MYSQLND_DEBUG * self);
41 enum_func_status (*free_handle)(MYSQLND_DEBUG * self);
/PHP_TRUNK/ext/pdo_oci/
H A Doci_statement.c616 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local
621 r = OCILobWrite(self->S->H->svc, self->S->err, self->lob,
622 &amt, self->offset, (char*)buf, count,
630 self->offset += amt;
636 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local
641 r = OCILobRead(self->S->H->svc, self->S->err, self
658 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local
672 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local
679 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local
704 struct oci_lob_self *self = ecalloc(1, sizeof(*self)); local
[all...]
/PHP_TRUNK/ext/xmlwriter/
H A Dphp_xmlwriter.c700 zval *self = getThis(); local
702 if (self) {
706 XMLWRITER_FROM_OBJECT(intern, self);
737 zval *self = getThis(); local
739 if (self) {
740 XMLWRITER_FROM_OBJECT(intern, self);
774 zval *self = getThis(); local
776 if (self) {
780 XMLWRITER_FROM_OBJECT(intern, self);
838 zval *self local
880 zval *self = getThis(); local
923 zval *self = getThis(); local
973 zval *self = getThis(); local
1031 zval *self = getThis(); local
1083 zval *self = getThis(); local
1152 zval *self = getThis(); local
1191 zval *self = getThis(); local
1256 zval *self = getThis(); local
1309 zval *self = getThis(); local
1354 zval *self = getThis(); local
1400 zval *self = getThis(); local
1455 zval *self = getThis(); local
1512 zval *self = getThis(); local
1553 zval *self = getThis(); local
1604 zval *self = getThis(); local
1648 zval *self = getThis(); local
1699 zval *self = getThis(); local
1744 zval *self = getThis(); local
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c1384 zval *self = getThis(); local
1391 if (self) {
1393 ze_obj = Z_ZIP_P(self);
1440 zval *self = getThis(); local
1444 if (!self) {
1448 ZIP_FROM_OBJECT(intern, self);
1472 zval *self = getThis(); local
1475 if (!self) {
1479 ZIP_FROM_OBJECT(intern, self);
1481 ze_obj = Z_ZIP_P(self);
1501 zval *self = getThis(); local
1523 zval *self = getThis(); local
1574 zval *self = getThis(); local
1699 zval *self = getThis(); local
1739 zval *self = getThis(); local
1801 zval *self = getThis(); local
1827 zval *self = getThis(); local
1855 zval *self = getThis(); local
1889 zval *self = getThis(); local
1919 zval *self = getThis(); local
1945 zval *self = getThis(); local
1973 zval *self = getThis(); local
2006 zval *self = getThis(); local
2036 zval *self = getThis(); local
2074 zval *self = getThis(); local
2103 zval *self = getThis(), *z_opsys, *z_attr; local
2147 zval *self = getThis(), *z_opsys, *z_attr; local
2183 zval *self = getThis(); local
2221 zval *self = getThis(); local
2249 zval *self = getThis(); local
2279 zval *self = getThis(); local
2310 zval *self = getThis(); local
2346 zval *self = getThis(); local
2380 zval *self = getThis(); local
2410 zval *self = getThis(); local
2444 zval *self = getThis(); local
2465 zval *self = getThis(); local
2492 zval *self = getThis(); local
2576 zval *self = getThis(); local
2660 zval *self = getThis(); local
[all...]
H A Dzip_stream.c43 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
52 if (self->za && self->zf) {
53 n = zip_fread(self->zf, buf, count);
56 zip_file_error_get(self->zf, &ze, &se);
58 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf));
66 self->cursor += n;
89 if (self->zf) {
90 zip_fclose(self->zf);
91 self
209 struct php_zip_stream_data_t *self; local
271 struct php_zip_stream_data_t *self; local
[all...]
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c37 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local
41 read = gzread(self->gz_file, buf, count);
43 if (gzeof(self->gz_file)) {
52 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local
56 wrote = gzwrite(self->gz_file, (char *) buf, count);
63 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local
65 assert(self != NULL);
71 *newoffs = gzseek(self->gz_file, offset, whence);
78 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local
82 if (self
98 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local
116 struct php_gz_stream_data_t *self; local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c245 static int fill_buffer(multipart_buffer *self TSRMLS_DC)
250 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) {
251 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer);
254 self->buf_begin = self->buffer;
257 bytes_to_read = self
293 multipart_buffer *self = (multipart_buffer *) ecalloc(1, sizeof(multipart_buffer)); local
331 next_line(multipart_buffer *self) argument
390 find_boundary(multipart_buffer *self, char *boundary TSRMLS_DC) argument
408 multipart_buffer_headers(multipart_buffer *self, zend_llist *header TSRMLS_DC) argument
614 multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end TSRMLS_DC) argument
660 multipart_buffer_read_body(multipart_buffer *self, size_t *len TSRMLS_DC) argument
[all...]
/PHP_TRUNK/main/streams/
H A Dmemory.c291 php_stream_memory_data *self; local
294 self = emalloc(sizeof(*self));
295 self->data = NULL;
296 self->fpos = 0;
297 self->fsize = 0;
298 self->smax = ~0u;
299 self->mode = mode;
301 stream = php_stream_alloc_rel(&php_stream_memory_ops, self, 0, mode & TEMP_STREAM_READONLY ? "rb" : "w+b");
556 php_stream_temp_data *self; local
[all...]
H A Dplain_wrapper.c162 php_stdio_stream_data *self; local
164 self = pemalloc_rel_orig(sizeof(*self), persistent_id);
165 memset(self, 0, sizeof(*self));
166 self->file = NULL;
167 self->is_pipe = 0;
168 self->lock_flag = LOCK_UN;
169 self->is_process_pipe = 0;
170 self
178 php_stdio_stream_data *self; local
207 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local
235 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local
274 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local
303 php_stdio_stream_data *self; local
352 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local
994 php_stdio_stream_data *self = (php_stdio_stream_data*)ret->abstract; local
[all...]

Completed in 18 milliseconds

12