| /PHP_TRUNK/ext/fileinfo/ |
| H A D | fileinfo.c | 502 php_stream_statbuf ssb; local 517 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { 518 if (ssb.sb.st_mode & S_IFDIR) { 536 if (php_stream_stat(stream, &ssb) == SUCCESS) { 537 if (ssb.sb.st_mode & S_IFDIR) {
|
| /PHP_TRUNK/ext/standard/ |
| H A D | basic_functions.h | 190 php_stream_statbuf ssb, lssb; member in struct:_php_basic_globals
|
| H A D | filestat.c | 854 php_stream_statbuf ssb; local 906 if (php_stream_stat_path_ex((char *)filename, flags, &ssb, NULL)) { 914 stat_sb = &ssb.sb; 919 if(ssb.sb.st_uid==getuid()) { 923 } else if(ssb.sb.st_gid==getgid()) { 936 if(ssb.sb.st_gid==gids[i]) { 965 RETURN_LONG((long)ssb.sb.st_mode); 967 RETURN_LONG((long)ssb.sb.st_ino); 969 RETURN_LONG((long)ssb.sb.st_size); 971 RETURN_LONG((long)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) 783 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 790 /* If ssb is NULL then someone is misbehaving */ 791 if (!ssb) return -1; 798 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */ 802 ssb->sb.st_mode |= S_IFREG; 804 ssb->sb.st_mode |= S_IFDIR; 821 if (ssb->sb.st_mode & S_IFDIR) { 822 ssb->sb.st_size = 0; 827 ssb [all...] |
| /PHP_TRUNK/main/ |
| 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 | 1304 php_stream_statbuf ssb; local 1305 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { 1306 return ssb.sb.st_size;
|
| /PHP_TRUNK/main/streams/ |
| H A D | plain_wrapper.c | 539 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 547 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); 1002 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 1019 return VCWD_LSTAT(url, &ssb->sb); 1025 return VCWD_LSTAT(url, &ssb->sb); 1029 return VCWD_STAT(url, &ssb->sb);
|
| H A D | userspace.c | 49 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); 880 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) 888 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ 893 memset(ssb, 0, sizeof(php_stream_statbuf)); 925 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 942 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) 1447 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 1483 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC))
|
| H A D | streams.c | 818 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) 820 memset(ssb, 0, sizeof(*ssb)); 824 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); 835 return (stream->ops->stat)(stream, ssb TSRMLS_CC); 1912 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument 1921 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf)); 1926 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf)); 1933 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, contex 1941 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); local 1947 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf)); local [all...] |
| /PHP_TRUNK/ext/phar/ |
| H A D | phar.c | 1740 php_stream_statbuf ssb; local 1762 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) { 1766 if (ssb.sb.st_mode & S_IFDIR) { 1789 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) { 1810 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { 1818 if (ssb.sb.st_mode & S_IFDIR) { 1830 if (ssb.sb.st_mode & S_IFDIR) {
|
| 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 | 2082 php_stream_statbuf ssb; local 2190 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { 2641 php_stream_statbuf ssb; local 2652 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { 2660 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); 4168 php_stream_statbuf ssb; local 4214 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { 4229 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { 4317 php_stream_statbuf ssb; local 4357 if (php_stream_stat_path(pathto, &ssb) < [all...] |
| H A D | util.c | 177 php_stream_statbuf ssb; local 226 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { 232 if (ssb.sb.st_mode & S_IFDIR) { 242 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; 245 entry.flags = ssb.sb.st_mode; 485 php_stream_statbuf ssb; 487 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { 1569 php_stream_statbuf ssb; local 1590 if (SUCCESS != php_stream_stat_path(test, &ssb)) { 1595 if (ssb [all...] |
| /PHP_TRUNK/ext/fileinfo/libmagic/ |
| H A D | fsmagic.c | 109 php_stream_statbuf ssb; local 110 if (php_stream_stat(stream, &ssb) < 0) { 117 memcpy(sb, &ssb.sb, sizeof(struct stat));
|
| /PHP_TRUNK/ext/zip/ |
| 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) { 2422 php_stream_statbuf ssb; local 2441 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
|