| /PHP_5_3/ext/zip/ |
| H A D | zip_stream.c | 100 static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */ 146 memset(ssb, 0, sizeof(php_stream_statbuf)); 154 ssb->sb.st_size = sb.size; 155 ssb->sb.st_mode |= S_IFREG; /* regular file */ 157 ssb->sb.st_size = 0; 158 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ 161 ssb->sb.st_mtime = sb.mtime; 162 ssb->sb.st_atime = sb.mtime; 163 ssb->sb.st_ctime = sb.mtime; 164 ssb [all...] |
| H A D | php_zip.c | 140 php_stream_statbuf ssb; local 200 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { 2426 php_stream_statbuf ssb; local 2449 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
|
| /PHP_5_3/ext/fileinfo/libmagic/ |
| H A D | fsmagic.c | 106 php_stream_statbuf ssb; local 107 if (php_stream_stat(stream, &ssb) < 0) { 114 memcpy(sb, &ssb.sb, sizeof(struct stat));
|
| /PHP_5_3/ext/curl/ |
| H A D | streams.c | 242 static int php_curl_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
|
| /PHP_5_3/ext/fileinfo/ |
| H A D | fileinfo.c | 507 php_stream_statbuf ssb; local 522 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { 523 if (ssb.sb.st_mode & S_IFDIR) { 541 if (php_stream_stat(stream, &ssb) == SUCCESS) { 542 if (ssb.sb.st_mode & S_IFDIR) {
|
| /PHP_5_3/ext/openssl/ |
| H A D | xp_ssl.c | 301 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 303 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC);
|
| /PHP_5_3/ext/sqlite3/ |
| H A D | sqlite3.c | 1183 static int php_sqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 1186 ssb->sb.st_size = sqlite3_stream->size;
|
| /PHP_5_3/ext/standard/ |
| H A D | basic_functions.h | 193 php_stream_statbuf ssb, lssb; member in struct:_php_basic_globals
|
| H A D | filestat.c | 637 php_stream_statbuf ssb; local 638 if (php_stream_stat_path_ex(filename, 0, &ssb, NULL)) { 642 if ((imode & 04000) != 0 && (ssb.sb.st_mode & 04000) == 0) { 645 if ((imode & 02000) != 0 && (ssb.sb.st_mode & 02000) == 0) { 648 if ((imode & 01000) != 0 && (ssb.sb.st_mode & 01000) == 0) { 787 php_stream_statbuf ssb; local 858 if (php_stream_stat_path_ex((char *)filename, flags, &ssb, NULL)) { 866 stat_sb = &ssb.sb; 871 if(ssb.sb.st_uid==getuid()) { 875 } else if(ssb [all...] |
| H A D | ftp_fopen_wrapper.c | 94 static int php_stream_ftp_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 784 static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument 791 /* If ssb is NULL then someone is misbehaving */ 792 if (!ssb) return -1; 799 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */ 803 ssb->sb.st_mode |= S_IFREG; 805 ssb->sb.st_mode |= S_IFDIR; 822 if (ssb->sb.st_mode & S_IFDIR) { 823 ssb->sb.st_size = 0; 828 ssb [all...] |
| H A D | http_fopen_wrapper.c | 928 static int php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
|
| /PHP_5_3/main/ |
| H A D | fopen_wrappers.c | 619 php_stream_statbuf ssb; local 621 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { 655 php_stream_statbuf ssb; local 657 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
|
| H A D | php_streams.h | 128 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); 139 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); 141 int (*url_stat)(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); 326 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); 327 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) 329 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); 330 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) 331 #define php_stream_stat_path_ex(path, flags, ssb, contex [all...] |
| H A D | main.c | 1206 php_stream_statbuf ssb; local 1207 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { 1208 return ssb.sb.st_size;
|
| /PHP_5_3/main/streams/ |
| H A D | memory.c | 204 static int php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */ 210 memset(ssb, 0, sizeof(php_stream_statbuf)); 213 ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666; 215 ssb->sb.st_size = ms->fsize; 216 ssb->sb.st_mode |= S_IFREG; /* regular file */ 219 ssb->sb.st_mtime.tv_sec = timestamp; 220 ssb->sb.st_atime.tv_sec = timestamp; 221 ssb->sb.st_ctime.tv_sec = timestamp; 223 ssb->sb.st_mtime = timestamp; 224 ssb [all...] |
| H A D | plain_wrapper.c | 534 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 542 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); 1011 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument 1032 return VCWD_LSTAT(url, &ssb->sb); 1038 return VCWD_LSTAT(url, &ssb->sb); 1042 return VCWD_STAT(url, &ssb->sb);
|
| H A D | streams.c | 752 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 754 memset(ssb, 0, sizeof(*ssb)); 758 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); 769 return (stream->ops->stat)(stream, ssb TSRMLS_CC); 1847 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument 1856 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf)); 1861 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf)); 1868 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, contex 1876 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); local 1882 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf)); local [all...] |
| H A D | userspace.c | 40 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); 853 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) 861 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ 866 memset(ssb, 0, sizeof(php_stream_statbuf)); 898 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 915 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) 1320 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument 1363 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC))
|
| H A D | xp_socket.c | 223 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 229 return fstat(sock->socket, &ssb->sb);
|
| /PHP_5_3/ext/phar/ |
| H A D | dirstream.c | 25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_dir TSRMLS_DC);
|
| H A D | phar.c | 1740 php_stream_statbuf ssb; local 1764 if (SUCCESS == php_stream_stat_path((char *) fname, &ssb)) { 1767 if (ssb.sb.st_mode & S_IFDIR) { 1792 if (SUCCESS != php_stream_stat_path((char *) fname, &ssb)) { 1817 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { 1824 if (ssb.sb.st_mode & S_IFDIR) { 1836 if (ssb.sb.st_mode & S_IFDIR) {
|
| H A D | stream.h | 30 static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); 38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
|
| H A D | stream.c | 481 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_temp_dir TSRMLS_DC) argument 483 memset(ssb, 0, sizeof(php_stream_statbuf)); 486 ssb->sb.st_size = data->uncompressed_filesize; 487 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; 488 ssb->sb.st_mode |= S_IFREG; /* regular file */ 491 ssb->sb.st_mtime.tv_sec = data->timestamp; 492 ssb->sb.st_atime.tv_sec = data->timestamp; 493 ssb->sb.st_ctime.tv_sec = data->timestamp; 495 ssb->sb.st_mtime = data->timestamp; 496 ssb 566 phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument [all...] |
| H A D | phar_object.c | 2101 php_stream_statbuf ssb; local 2209 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { 2660 php_stream_statbuf ssb; local 2671 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { 2679 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); 4187 php_stream_statbuf ssb; local 4232 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { 4247 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { 4335 php_stream_statbuf ssb; local 4375 if (php_stream_stat_path(pathto, &ssb) < [all...] |
| H A D | util.c | 178 php_stream_statbuf ssb; local 227 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { 233 if (ssb.sb.st_mode & S_IFDIR) { 243 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; 246 entry.flags = ssb.sb.st_mode; 486 php_stream_statbuf ssb; 488 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { 1570 php_stream_statbuf ssb; local 1591 if (SUCCESS != php_stream_stat_path(test, &ssb)) { 1596 if (ssb [all...] |