/PHP-5.3/ext/zip/ |
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 …]
|
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() 2426 php_stream_statbuf ssb; in ZIPARCHIVE_METHOD() local 2449 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in ZIPARCHIVE_METHOD()
|
/PHP-5.3/ext/phar/ |
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 | util.c | 178 php_stream_statbuf ssb; in phar_mount_entry() local 227 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry() 233 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 243 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 246 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 486 php_stream_statbuf ssb; in phar_find_in_include_path() 488 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { in phar_find_in_include_path() 1570 php_stream_statbuf ssb; in phar_get_entry_info_dir() local 1591 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir() 1596 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir() [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) < 0) { [all …]
|
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 | dirstream.c | 25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool…
|
/PHP-5.3/ext/standard/ |
H A D | filestat.c | 637 php_stream_statbuf ssb; in PHP_FUNCTION() local 787 php_stream_statbuf ssb; in php_stat() local 866 stat_sb = &ssb.sb; in php_stat() 871 if(ssb.sb.st_uid==getuid()) { in php_stat() 888 if(ssb.sb.st_gid==gids[i]) { in php_stat() 919 RETURN_LONG((long)ssb.sb.st_ino); in php_stat() 923 RETURN_LONG((long)ssb.sb.st_uid); in php_stat() 925 RETURN_LONG((long)ssb.sb.st_gid); in php_stat() 933 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat() 936 switch(ssb.sb.st_mode & S_IFMT) { in php_stat() [all …]
|
H A D | ftp_fopen_wrapper.c | 792 if (!ssb) return -1; in php_stream_ftp_url_stat() 823 ssb->sb.st_size = 0; in php_stream_ftp_url_stat() 872 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat() 876 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat() 877 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat() 878 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat() 879 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat() 880 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat() 882 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat() 883 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat() [all …]
|
H A D | basic_functions.h | 193 php_stream_statbuf ssb, lssb; member
|
/PHP-5.3/main/streams/ |
H A D | memory.c | 215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat() 219 ssb->sb.st_mtime.tv_sec = timestamp; in php_stream_memory_stat() 223 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat() 224 ssb->sb.st_atime = timestamp; in php_stream_memory_stat() 225 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat() 228 ssb->sb.st_nlink = 1; in php_stream_memory_stat() 229 ssb->sb.st_rdev = -1; in php_stream_memory_stat() 231 ssb->sb.st_dev = 0xC; in php_stream_memory_stat() 233 ssb->sb.st_ino = 0; in php_stream_memory_stat() 236 ssb->sb.st_blksize = -1; in php_stream_memory_stat() [all …]
|
H A D | streams.c | 752 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in _php_stream_stat() 754 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat() 758 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); in _php_stream_stat() 769 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat() 1847 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… 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, context TSRMLS_CC); 1876 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); 1882 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf));
|
H A D | userspace.c | 40 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 853 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) in statbuf_from_array() 861 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ in statbuf_from_array() 866 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array() 898 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_userstreamop_stat() 915 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat() 1320 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in user_wrapper_stat_url() argument 1363 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC)) in user_wrapper_stat_url()
|
H A D | plain_wrapper.c | 534 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_stdiop_stat() 542 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat() 1011 …ter(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument 1032 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1038 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1042 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
|
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.3/ext/fileinfo/libmagic/ |
H A D | fsmagic.c | 106 php_stream_statbuf ssb; in file_fsmagic() local 107 if (php_stream_stat(stream, &ssb) < 0) { in file_fsmagic() 114 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic()
|
/PHP-5.3/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… 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) argument 329 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… 330 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) argument 331 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (… argument
|
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 | build-defs.h.in | 15 | Author: Stig S�ther Bakken <ssb@php.net> |
|
H A D | main.c | 1206 php_stream_statbuf ssb; in php_zend_stream_fsizer() local 1207 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { in php_zend_stream_fsizer() 1208 return ssb.sb.st_size; in php_zend_stream_fsizer()
|
/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/Zend/RFCs/ |
H A D | 002.txt | 4 Maintainer: Stig S. Bakken <ssb@php.net> 115 # [ssb 2001-09-08]:
|
/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) in php_openssl_sockop_stat() 303 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); in php_openssl_sockop_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) in php_curl_stream_stat()
|