| /PHP_TRUNK/ext/pdo/tests/ |
| H A D | pdo_test.inc | 69 $config = self::get_config($file); 73 return self::factory();
|
| /PHP_TRUNK/ext/pdo_mysql/tests/ |
| H A D | mysql_pdo_test.inc | 9 $dsn = self::getDSN($mydsn); 83 return self::extractVersion($db->getAttribute(PDO::ATTR_CLIENT_VERSION)); 87 return self::extractVersion($db->getAttribute(PDO::ATTR_SERVER_VERSION)); 171 $db = self::factory();
|
| /PHP_TRUNK/ext/phar/phar/ |
| H A D | clicommand.inc | 29 $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 D | pharcommand.inc | 230 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 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()); 183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); 192 include self [all...] |
| /PHP_TRUNK/ext/spl/examples/ |
| H A D | callbackfilteriterator.inc | 42 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 D | dualiterator.inc | 98 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 D | cachingiterator.inc | 47 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 D | multipleiterator.inc | 42 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)
|
| H A D | recursiveregexiterator.inc | 28 * @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 D | recursivetreeiterator.inc | 33 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 D | regexiterator.inc | 32 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...] |
| /PHP_TRUNK/ext/sqlite3/tests/ |
| H A D | stream_test.inc | 17 $ret = substr(self::$string, $this->position, $count); 29 return array('size' => self::$string_length); 39 return ($this->position >= self::$string_length);
|
| /PHP_TRUNK/ext/zip/ |
| H A D | zip_stream.c | 27 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract; 36 if (self->za && self->zf) { 37 n = zip_fread(self->zf, buf, count); 40 zip_file_error_get(self->zf, &ze, &se); 42 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf)); 50 self->cursor += n; 73 if (self->zf) { 74 zip_fclose(self->zf); 75 self 194 struct php_zip_stream_data_t *self; local 257 struct php_zip_stream_data_t *self; local [all...] |
| /PHP_TRUNK/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_TRUNK/ext/bz2/ |
| H A D | bz2.c | 139 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *) stream->abstract; local 142 ret = BZ2_bzread(self->bz_file, buf, count); 153 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *) stream->abstract; local 155 return BZ2_bzwrite(self->bz_file, (char*)buf, count); 160 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; local 164 BZ2_bzclose(self->bz_file); 167 if (self->stream) { 168 php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | (close_handle == 0 ? PHP_STREAM_FREE_PRESERVE_HANDLE : 0)); 171 efree(self); 178 struct php_bz2_stream_data_t *self local 197 struct php_bz2_stream_data_t *self; local 592 struct php_bz2_stream_data_t *self; local [all...] |
| /PHP_TRUNK/ext/iconv/ |
| H A D | iconv.c | 2484 static void php_iconv_stream_filter_dtor(php_iconv_stream_filter *self) argument 2486 iconv_close(self->cd); 2487 pefree(self->to_charset, self->persistent); 2488 pefree(self->from_charset, self->persistent); 2493 static php_iconv_err_t php_iconv_stream_filter_ctor(php_iconv_stream_filter *self, argument 2497 if (NULL == (self->to_charset = pemalloc(to_charset_len + 1, persistent))) { 2500 self->to_charset_len = to_charset_len; 2501 if (NULL == (self 2524 php_iconv_stream_filter_append_bucket( php_iconv_stream_filter *self, php_stream *stream, php_stream_filter *filter, php_stream_bucket_brigade *buckets_out, const char *ps, size_t buf_len, size_t *consumed, int persistent TSRMLS_DC) argument 2740 php_iconv_stream_filter *self = (php_iconv_stream_filter *)filter->abstract; local [all...] |
| /PHP_TRUNK/ext/pdo_pgsql/ |
| H A D | pgsql_driver.c | 122 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; local 123 return lo_write(self->conn, self->lfd, (char*)buf, count); 128 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; local 129 return lo_read(self->conn, self->lfd, buf, count); 134 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; local 135 pdo_dbh_t *dbh = self->dbh; 138 lo_close(self->conn, self 153 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; local 174 struct pdo_pgsql_lob_self *self = ecalloc(1, sizeof(*self)); local [all...] |
| /PHP_TRUNK/ext/zlib/ |
| H A D | zlib_fopen_wrapper.c | 35 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local 38 read = gzread(self->gz_file, buf, count); 40 if (gzeof(self->gz_file)) { 49 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local 52 wrote = gzwrite(self->gz_file, (char *) buf, count); 59 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local 61 assert(self != NULL); 67 *newoffs = gzseek(self->gz_file, offset, whence); 74 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local 78 if (self 94 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; local 112 struct php_gz_stream_data_t *self; local [all...] |
| /PHP_TRUNK/main/ |
| H A D | rfc1867.c | 235 static int fill_buffer(multipart_buffer *self TSRMLS_DC) 240 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { 241 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); 244 self->buf_begin = self->buffer; 247 bytes_to_read = self 283 multipart_buffer *self = (multipart_buffer *) ecalloc(1, sizeof(multipart_buffer)); local 321 next_line(multipart_buffer *self) argument 380 find_boundary(multipart_buffer *self, char *boundary TSRMLS_DC) argument 398 multipart_buffer_headers(multipart_buffer *self, zend_llist *header TSRMLS_DC) argument 604 multipart_buffer_read(multipart_buffer *self, char *buf, int bytes, int *end TSRMLS_DC) argument 650 multipart_buffer_read_body(multipart_buffer *self, unsigned int *len TSRMLS_DC) argument [all...] |
| /PHP_TRUNK/main/streams/ |
| H A D | memory.c | 291 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"); 553 php_stream_temp_data *self; local [all...] |
| H A D | plain_wrapper.c | 154 php_stdio_stream_data *self; local 156 self = pemalloc_rel_orig(sizeof(*self), persistent_id); 157 memset(self, 0, sizeof(*self)); 158 self->file = NULL; 159 self->is_pipe = 0; 160 self->lock_flag = LOCK_UN; 161 self->is_process_pipe = 0; 162 self 170 php_stdio_stream_data *self; local 210 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local 233 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local 272 php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; local 301 php_stdio_stream_data *self; local 964 php_stdio_stream_data *self = (php_stdio_stream_data*)ret->abstract; local [all...] |
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd_debug.c | 31 #define MYSQLND_ZTS(self) TSRMLS_D = (self)->TSRMLS_C 33 #define MYSQLND_ZTS(self) 39 MYSQLND_METHOD(mysqlnd_debug, open)(MYSQLND_DEBUG * self, zend_bool reopen) 41 MYSQLND_ZTS(self); 43 if (!self->file_name) { 47 self->stream = php_stream_open_wrapper(self->file_name, 48 reopen == TRUE || self->flags & MYSQLND_DEBUG_APPEND? "ab":"wb", 50 return self [all...] |
| H A D | mysqlnd_debug.h | 31 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 D | oci_statement.c | 610 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local 615 r = OCILobWrite(self->S->H->svc, self->S->err, self->lob, 616 &amt, self->offset, (char*)buf, count, 624 self->offset += amt; 630 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local 635 r = OCILobRead(self->S->H->svc, self->S->err, self 652 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local 666 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local 673 struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; local 698 struct oci_lob_self *self = ecalloc(1, sizeof(*self)); local [all...] |