/PHP-5.5/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() 2431 php_stream_statbuf ssb; in ZIPARCHIVE_METHOD() local 2450 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in ZIPARCHIVE_METHOD()
|
/PHP-5.5/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 | 173 php_stream_statbuf ssb; in phar_mount_entry() local 222 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry() 228 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry() 238 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry() 241 entry.flags = ssb.sb.st_mode; in phar_mount_entry() 1326 php_stream_statbuf ssb; in phar_get_entry_info_dir() local 1347 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir() 1352 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir() 1360 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
|
H A D | phar_object.c | 2034 php_stream_statbuf ssb; in phar_rename_archive() local 2144 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { in phar_rename_archive() 2591 php_stream_statbuf ssb; in PHP_METHOD() local 2602 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { in PHP_METHOD() 2610 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD() 4114 php_stream_statbuf ssb; in phar_extract_file() local 4197 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file() 4213 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file() 4305 php_stream_statbuf ssb; in PHP_METHOD() local 4345 if (php_stream_stat_path(pathto, &ssb) < 0) { in PHP_METHOD() [all …]
|
H A D | phar.c | 1736 php_stream_statbuf ssb; local 1758 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) { 1762 if (ssb.sb.st_mode & S_IFDIR) { 1785 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) { 1806 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { 1814 if (ssb.sb.st_mode & S_IFDIR) { 1826 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.5/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 | 822 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in _php_stream_stat() 824 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat() 828 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); in _php_stream_stat() 839 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat() 1921 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… argument 1931 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf)); 1936 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf)); 1944 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context TSRMLS_CC); 1953 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); 1959 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf));
|
H A D | plain_wrapper.c | 570 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_stdiop_stat() 578 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat() 1033 …ter(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument 1046 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1052 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater() 1056 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
|
H A D | userspace.c | 49 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… 890 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) in statbuf_from_array() 898 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ in statbuf_from_array() 903 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array() 935 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_userstreamop_stat() 952 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat() 1457 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in user_wrapper_stat_url() argument 1493 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.5/ext/standard/ |
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
|
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()
|
/PHP-5.5/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.5/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… 334 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); 335 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) argument 337 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… 338 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) argument 339 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (… argument
|
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 | build-defs.h.in | 15 | Author: Stig S�ther Bakken <ssb@php.net> |
|
H A D | main.c | 1316 php_stream_statbuf ssb; in php_zend_stream_fsizer() local 1317 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { in php_zend_stream_fsizer() 1318 return ssb.sb.st_size; in php_zend_stream_fsizer()
|
/PHP-5.5/ext/fileinfo/ |
H A D | fileinfo.c | 502 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.5/Zend/RFCs/ |
H A D | 002.txt | 4 Maintainer: Stig S. Bakken <ssb@php.net> 115 # [ssb 2001-09-08]:
|
/PHP-5.5/ext/openssl/ |
H A D | xp_ssl.c | 425 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_openssl_sockop_stat() 427 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); in php_openssl_sockop_stat()
|