/PHP-5.4/main/streams/ |
H A D | memory.c | 211 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat() 215 ssb->sb.st_mtime.tv_sec = timestamp; in php_stream_memory_stat() 219 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat() 220 ssb->sb.st_atime = timestamp; in php_stream_memory_stat() 221 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat() 224 ssb->sb.st_nlink = 1; in php_stream_memory_stat() 225 ssb->sb.st_rdev = -1; in php_stream_memory_stat() 227 ssb->sb.st_dev = 0xC; in php_stream_memory_stat() 229 ssb->sb.st_ino = 0; in php_stream_memory_stat() 232 ssb->sb.st_blksize = -1; in php_stream_memory_stat() [all …]
|
H A D | plain_wrapper.c | 541 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_stdiop_stat() 549 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat() 1004 …ter(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument 1018 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1024 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1028 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
|
H A D | streams.c | 827 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in _php_stream_stat() 829 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat() 833 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); in _php_stream_stat() 844 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat() 1926 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… argument 1936 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf)); 1941 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf)); 1949 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context TSRMLS_CC); 1958 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); 1964 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf));
|
H A D | userspace.c | 49 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 880 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) in statbuf_from_array() 888 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ in statbuf_from_array() 893 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array() 925 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_userstreamop_stat() 942 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat() 1447 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in user_wrapper_stat_url() argument 1483 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC)) in user_wrapper_stat_url()
|
H A D | xp_socket.c | 223 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_sockop_stat() 229 return fstat(sock->socket, &ssb->sb); in php_sockop_stat()
|
/PHP-5.4/main/ |
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… 141 …int (*url_stat)(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_st… 338 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); 339 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) argument 341 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… 342 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) argument 343 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (… argument
|
H A D | build-defs.h.in | 15 | Author: Stig S�ther Bakken <ssb@php.net> |
|
H A D | fopen_wrappers.c | 551 php_stream_statbuf ssb; local 553 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { 587 php_stream_statbuf ssb; local 589 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
|
H A D | main.c | 1312 php_stream_statbuf ssb; in php_zend_stream_fsizer() local 1313 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { in php_zend_stream_fsizer() 1314 return ssb.sb.st_size; in php_zend_stream_fsizer()
|
/PHP-5.4/ext/zip/ |
H A D | php_zip.c | 140 php_stream_statbuf ssb; in php_zip_extract_file() local 200 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in php_zip_extract_file() 2423 php_stream_statbuf ssb; in ZIPARCHIVE_METHOD() local 2442 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in ZIPARCHIVE_METHOD()
|
H A D | zip_stream.c | 146 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_zip_ops_stat() 154 ssb->sb.st_size = sb.size; in php_zip_ops_stat() 157 ssb->sb.st_size = 0; in php_zip_ops_stat() 161 ssb->sb.st_mtime = sb.mtime; in php_zip_ops_stat() 162 ssb->sb.st_atime = sb.mtime; in php_zip_ops_stat() 163 ssb->sb.st_ctime = sb.mtime; in php_zip_ops_stat() 164 ssb->sb.st_nlink = 1; in php_zip_ops_stat() 165 ssb->sb.st_rdev = -1; in php_zip_ops_stat() 167 ssb->sb.st_blksize = -1; in php_zip_ops_stat() 168 ssb->sb.st_blocks = -1; in php_zip_ops_stat() [all …]
|
/PHP-5.4/ext/standard/ |
H A D | http_fopen_wrapper.c | 944 …_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */ in php_stream_http_stream_stat()
|
H A D | ftp_fopen_wrapper.c | 791 if (!ssb) return -1; in php_stream_ftp_url_stat() 822 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 871 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat() 875 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat() 876 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat() 877 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat() 878 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat() 879 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat() 881 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat() 882 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat() [all …]
|
H A D | filestat.c | 854 php_stream_statbuf ssb; in php_stat() local 914 stat_sb = &ssb.sb; in php_stat() 919 if(ssb.sb.st_uid==getuid()) { in php_stat() 936 if(ssb.sb.st_gid==gids[i]) { in php_stat() 965 RETURN_LONG((long)ssb.sb.st_mode); in php_stat() 967 RETURN_LONG((long)ssb.sb.st_ino); in php_stat() 971 RETURN_LONG((long)ssb.sb.st_uid); in php_stat() 973 RETURN_LONG((long)ssb.sb.st_gid); in php_stat() 981 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat() 984 switch(ssb.sb.st_mode & S_IFMT) { in php_stat() [all …]
|
H A D | basic_functions.h | 190 php_stream_statbuf ssb, lssb; member
|
/PHP-5.4/ext/sqlite3/ |
H A D | sqlite3.c | 1191 static int php_sqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 1194 ssb->sb.st_size = sqlite3_stream->size;
|
/PHP-5.4/ext/phar/ |
H A D | util.c | 177 php_stream_statbuf ssb; in phar_mount_entry() local 226 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry() 232 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 242 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 245 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 485 php_stream_statbuf ssb; in phar_find_in_include_path() 487 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { in phar_find_in_include_path() 1571 php_stream_statbuf ssb; in phar_get_entry_info_dir() local 1592 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir() 1597 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir() [all …]
|
H A D | phar_object.c | 2106 php_stream_statbuf ssb; local 2215 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { 2670 php_stream_statbuf ssb; local 2681 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { 2689 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); 4197 php_stream_statbuf ssb; local 4280 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { 4296 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { 4388 php_stream_statbuf ssb; local 4428 if (php_stream_stat_path(pathto, &ssb) < 0) { [all …]
|
H A D | stream.c | 500 ssb->sb.st_size = 0; in phar_dostat() 514 ssb->sb.st_size = 0; in phar_dostat() 515 ssb->sb.st_mode = 0777; in phar_dostat() 528 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat() 531 ssb->sb.st_nlink = 1; in phar_dostat() 532 ssb->sb.st_rdev = -1; in phar_dostat() 534 ssb->sb.st_dev = 0xc; in phar_dostat() 537 ssb->sb.st_ino = data->inode; in phar_dostat() 540 ssb->sb.st_blksize = -1; in phar_dostat() 541 ssb->sb.st_blocks = -1; in phar_dostat() [all …]
|
H A D | stream.h | 30 …tat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
|
H A D | phar.c | 1737 php_stream_statbuf ssb; local 1759 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) { 1763 if (ssb.sb.st_mode & S_IFDIR) { 1786 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) { 1807 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { 1815 if (ssb.sb.st_mode & S_IFDIR) { 1827 if (ssb.sb.st_mode & S_IFDIR) {
|
H A D | dirstream.c | 25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool…
|
/PHP-5.4/ext/openssl/ |
H A D | xp_ssl.c | 301 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_openssl_sockop_stat() 303 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); in php_openssl_sockop_stat()
|
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | fsmagic.c | 109 php_stream_statbuf ssb; in file_fsmagic() local 110 if (php_stream_stat(stream, &ssb) < 0) { in file_fsmagic() 117 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic()
|
/PHP-5.4/ext/fileinfo/ |
H A D | libmagic.patch | 1634 + php_stream_statbuf ssb; 1635 + if (php_stream_stat(stream, &ssb) < 0) { 1642 + memcpy(sb, &ssb.sb, sizeof(struct stat));
|