/php-src/ext/zip/ |
H A D | zip_stream.c | 166 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_zip_ops_stat() 175 ssb->sb.st_size = sb.size; in php_zip_ops_stat() 178 ssb->sb.st_size = 0; in php_zip_ops_stat() 182 ssb->sb.st_mtime = sb.mtime; in php_zip_ops_stat() 183 ssb->sb.st_atime = sb.mtime; in php_zip_ops_stat() 184 ssb->sb.st_ctime = sb.mtime; in php_zip_ops_stat() 185 ssb->sb.st_nlink = 1; in php_zip_ops_stat() 186 ssb->sb.st_rdev = -1; in php_zip_ops_stat() 188 ssb->sb.st_blksize = -1; in php_zip_ops_stat() 189 ssb->sb.st_blocks = -1; in php_zip_ops_stat() [all …]
|
H A D | php_zip.c | 126 php_stream_statbuf ssb; in php_zip_extract_file() local 193 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in php_zip_extract_file() 291 php_stream_statbuf ssb; in php_zip_add_file() local 302 if (php_stream_stat_path_ex(resolved_path, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) { in php_zip_add_file() 2807 php_stream_statbuf ssb; local 2824 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
|
/php-src/ext/phar/ |
H A D | stream.c | 504 ssb->sb.st_size = 0; in phar_dostat() 512 ssb->sb.st_size = 0; in phar_dostat() 513 ssb->sb.st_mode = 0777; in phar_dostat() 520 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat() 523 ssb->sb.st_nlink = 1; in phar_dostat() 524 ssb->sb.st_rdev = -1; in phar_dostat() 526 ssb->sb.st_dev = 0xc; in phar_dostat() 529 ssb->sb.st_ino = data->inode; in phar_dostat() 532 ssb->sb.st_blksize = -1; in phar_dostat() 533 ssb->sb.st_blocks = -1; in phar_dostat() [all …]
|
H A D | stream.h | 29 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 37 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb);
|
H A D | util.c | 192 php_stream_statbuf ssb; in phar_mount_entry() local 234 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry() 240 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 250 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 253 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 1345 php_stream_statbuf ssb; in phar_get_entry_info_dir() local 1363 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir() 1368 if ((ssb.sb.st_mode & S_IFDIR) && !dir) { in phar_get_entry_info_dir() 1376 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
|
H A D | phar_object.c | 1408 php_stream_statbuf ssb; in phar_build() local 1476 if (php_stream_stat_path(fname, &ssb) == 0 && S_ISDIR(ssb.sb.st_mode)) { in phar_build() 1676 if (php_stream_stat(fp, &ssb) != -1) { in phar_build() 1993 php_stream_statbuf ssb; in phar_rename_archive() local 2153 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { in phar_rename_archive() 2587 php_stream_statbuf ssb; in PHP_METHOD() local 3611 php_stream_statbuf ssb; in phar_add_file() local 4131 php_stream_statbuf ssb; in phar_extract_file() local 4344 php_stream_statbuf ssb; in PHP_METHOD() local 4387 if (php_stream_stat_path(pathto, &ssb) < 0) { in PHP_METHOD() [all …]
|
H A D | phar.c | 1811 php_stream_statbuf ssb; in phar_analyze_path() local 1833 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) { in phar_analyze_path() 1837 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path() 1860 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) { in phar_analyze_path() 1884 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { in phar_analyze_path() 1892 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path() 1904 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
|
H A D | dirstream.c | 24 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_d…
|
/php-src/ext/standard/ |
H A D | ftp_fopen_wrapper.c | 781 if (!ssb) return -1; in php_stream_ftp_url_stat() 812 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 861 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat() 865 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat() 866 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat() 867 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat() 868 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat() 869 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat() 871 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat() 872 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat() [all …]
|
H A D | filestat.c | 733 php_stream_statbuf ssb = {0}; in php_stat() local 734 zend_stat_t *stat_sb = &ssb.sb; in php_stat() 806 stat_sb = &BG(ssb).sb; in php_stat() 827 …|| wrapper->wops->url_stat(wrapper, local, flags | PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR, &ssb, … in php_stat() 841 memcpy(&BG(lssb), &ssb, sizeof(php_stream_statbuf)); in php_stat() 844 || !S_ISLNK(ssb.sb.st_mode)) { in php_stat() 849 memcpy(&BG(ssb), &ssb, sizeof(php_stream_statbuf)); in php_stat()
|
H A D | basic_functions.h | 80 php_stream_statbuf ssb, lssb; member
|
/php-src/main/streams/ |
H A D | memory.c | 194 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_stream_memory_stat() 199 ssb->sb.st_size = ZSTR_LEN(ms->data); in php_stream_memory_stat() 201 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat() 202 ssb->sb.st_atime = timestamp; in php_stream_memory_stat() 203 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat() 204 ssb->sb.st_nlink = 1; in php_stream_memory_stat() 205 ssb->sb.st_rdev = -1; in php_stream_memory_stat() 207 ssb->sb.st_dev = 0xC; in php_stream_memory_stat() 209 ssb->sb.st_ino = 0; in php_stream_memory_stat() 212 ssb->sb.st_blksize = -1; in php_stream_memory_stat() [all …]
|
H A D | userspace.c | 47 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 801 static void statbuf_from_array(zval *array, php_stream_statbuf *ssb) in statbuf_from_array() argument 807 ssb->sb.st_##name2 = zval_get_long(elem); \ in statbuf_from_array() 812 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array() 837 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_userstreamop_stat() argument 850 statbuf_from_array(&retval, ssb); in php_userstreamop_stat() 1264 php_stream_statbuf *ssb, php_stream_context *context) in user_wrapper_stat_url() argument 1289 statbuf_from_array(&zretval, ssb); in user_wrapper_stat_url()
|
H A D | plain_wrapper.c | 657 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_stdiop_stat() argument 664 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat() 1217 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument 1231 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1236 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1240 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
|
H A D | streams.c | 859 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb) in _php_stream_stat() argument 861 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat() 865 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb); in _php_stream_stat() 876 return (stream->ops->stat)(stream, ssb); in _php_stream_stat() 2118 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c… argument 2123 memset(ssb, 0, sizeof(*ssb)); 2127 return wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context);
|
H A D | xp_socket.c | 264 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_sockop_stat() argument 271 return zend_fstat(sock->socket, &ssb->sb); in php_sockop_stat()
|
/php-src/main/ |
H A D | php_streams.h | 127 int (*stat)(php_stream *stream, php_stream_statbuf *ssb); 138 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb); 140 …int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, … 363 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb); 364 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb)) argument 366 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c… 367 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL) argument 368 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (… argument
|
H A D | build-defs.h.in | 13 | Author: Stig Sæther Bakken <ssb@php.net> |
|
H A D | fopen_wrappers.c | 582 php_stream_statbuf ssb; local 584 … if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) { 622 php_stream_statbuf ssb; local 624 … if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) {
|
H A D | main.c | 1601 php_stream_statbuf ssb; in php_zend_stream_fsizer() local 1609 if (php_stream_stat(stream, &ssb) == 0) { in php_zend_stream_fsizer() 1610 return ssb.sb.st_size; in php_zend_stream_fsizer()
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.c | 374 php_stream_statbuf ssb; in _php_finfo_get_type() local 394 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { in _php_finfo_get_type() 395 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type() 409 if (php_stream_stat(stream, &ssb) == SUCCESS) { in _php_finfo_get_type() 410 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
|
/php-src/ext/fileinfo/libmagic/ |
H A D | magic.c | 238 php_stream_statbuf ssb; in file_or_stream() local 239 if (php_stream_stat(stream, &ssb) < 0) { in file_or_stream() 246 memcpy(&sb, &ssb.sb, sizeof(zend_stat_t)); in file_or_stream()
|
/php-src/ext/pdo_sqlite/ |
H A D | pdo_sqlite.c | 267 static int php_pdosqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb) in php_pdosqlite3_stream_stat() argument 270 ssb->sb.st_size = sqlite3_stream->size; in php_pdosqlite3_stream_stat()
|
/php-src/ext/dba/ |
H A D | dba.c | 703 php_stream_statbuf ssb; in php_dba_open() local 704 need_creation = (SUCCESS != php_stream_stat_path(ZSTR_VAL(path), &ssb)); in php_dba_open()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_bp.c | 258 php_stream_statbuf ssb; in phpdbg_set_breakpoint_file() local 277 if (php_stream_stat_path(path, &ssb) == FAILURE) { in phpdbg_set_breakpoint_file() 287 } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) { in phpdbg_set_breakpoint_file()
|