sb 544 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { sb 563 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { sb 867 ext/fileinfo/libmagic/apprentice.c size_t sb = apprentice_magic_strength(mb->mp); sb 868 ext/fileinfo/libmagic/apprentice.c if (sa == sb) sb 870 ext/fileinfo/libmagic/apprentice.c else if (sa > sb) sb 2828 ext/fileinfo/libmagic/apprentice.c if (st.sb.st_mode & S_IFDIR) { sb 2848 ext/fileinfo/libmagic/apprentice.c if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { sb 2850 ext/fileinfo/libmagic/apprentice.c st.sb.st_size < 8 ? "small" : "large"); sb 2854 ext/fileinfo/libmagic/apprentice.c map->len = (size_t)st.sb.st_size; sb 2859 ext/fileinfo/libmagic/apprentice.c if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { sb 2899 ext/fileinfo/libmagic/apprentice.c nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); sb 2900 ext/fileinfo/libmagic/apprentice.c entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); sb 2901 ext/fileinfo/libmagic/apprentice.c if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { sb 2903 ext/fileinfo/libmagic/apprentice.c dbname, (unsigned long long)st.sb.st_size, sb 97 ext/fileinfo/libmagic/fsmagic.c file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream *stream) sb 120 ext/fileinfo/libmagic/fsmagic.c memcpy(sb, &ssb.sb, sizeof(struct stat)); sb 122 ext/fileinfo/libmagic/fsmagic.c if (php_sys_stat(fn, sb) != 0) { sb 134 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISUID) sb 139 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISGID) sb 144 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISVTX) sb 150 ext/fileinfo/libmagic/fsmagic.c switch (sb->st_mode & S_IFMT) { sb 170 ext/fileinfo/libmagic/fsmagic.c COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), sb 171 ext/fileinfo/libmagic/fsmagic.c dv_subunit(sb->st_rdev)) == -1) sb 175 ext/fileinfo/libmagic/fsmagic.c COMMA, (long)major(sb->st_rdev), sb 176 ext/fileinfo/libmagic/fsmagic.c (long)minor(sb->st_rdev)) == -1) sb 242 ext/fileinfo/libmagic/fsmagic.c if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { sb 254 ext/fileinfo/libmagic/fsmagic.c file_error(ms, 0, "invalid mode 0%o", sb->st_mode); sb 291 ext/fileinfo/libmagic/magic.c const zend_stat_t *sb) sb 304 ext/fileinfo/libmagic/magic.c utsbuf[0].tv_sec = sb->st_atime; sb 305 ext/fileinfo/libmagic/magic.c utsbuf[1].tv_sec = sb->st_mtime; sb 312 ext/fileinfo/libmagic/magic.c utbuf.actime = sb->st_atime; sb 313 ext/fileinfo/libmagic/magic.c utbuf.modtime = sb->st_mtime; sb 355 ext/fileinfo/libmagic/magic.c zend_stat_t sb; sb 373 ext/fileinfo/libmagic/magic.c switch (file_fsmagic(ms, inname, &sb, stream)) { sb 391 ext/fileinfo/libmagic/magic.c if (unreadable_info(ms, sb.st_mode, inname) == -1) sb 420 ext/fileinfo/libmagic/magic.c close_and_restore(ms, inname, 0, &sb); sb 705 ext/opcache/ZendAccelerator.c *statbuf = stream_statbuf.sb; sb 817 ext/opcache/ZendAccelerator.c php_stream_statbuf sb; sb 829 ext/opcache/ZendAccelerator.c ret = stream->ops->stat(stream, &sb); sb 838 ext/opcache/ZendAccelerator.c statbuf = sb.sb; sb 2246 ext/openssl/openssl.c zend_stat_t sb; sb 2258 ext/openssl/openssl.c if (VCWD_STAT(Z_STRVAL_P(item), &sb) == -1) { sb 2263 ext/openssl/openssl.c if ((sb.st_mode & S_IFREG) == S_IFREG) { sb 407 ext/pdo_odbc/odbc_stmt.c php_stream_statbuf sb; sb 415 ext/pdo_odbc/odbc_stmt.c if (0 == php_stream_stat(stm, &sb)) { sb 438 ext/pdo_odbc/odbc_stmt.c P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); sb 617 ext/phar/func_interceptors.c zend_stat_t sb = {0}; sb 669 ext/phar/func_interceptors.c sb.st_size = 0; sb 670 ext/phar/func_interceptors.c sb.st_mode = 0777; sb 671 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 673 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = phar->max_timestamp; sb 674 ext/phar/func_interceptors.c sb.st_atime.tv_sec = phar->max_timestamp; sb 675 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = phar->max_timestamp; sb 677 ext/phar/func_interceptors.c sb.st_mtime = phar->max_timestamp; sb 678 ext/phar/func_interceptors.c sb.st_atime = phar->max_timestamp; sb 679 ext/phar/func_interceptors.c sb.st_ctime = phar->max_timestamp; sb 715 ext/phar/func_interceptors.c sb.st_size = 0; sb 716 ext/phar/func_interceptors.c sb.st_mode = 0777; sb 717 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 719 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = phar->max_timestamp; sb 720 ext/phar/func_interceptors.c sb.st_atime.tv_sec = phar->max_timestamp; sb 721 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = phar->max_timestamp; sb 723 ext/phar/func_interceptors.c sb.st_mtime = phar->max_timestamp; sb 724 ext/phar/func_interceptors.c sb.st_atime = phar->max_timestamp; sb 725 ext/phar/func_interceptors.c sb.st_ctime = phar->max_timestamp; sb 742 ext/phar/func_interceptors.c sb.st_size = data->uncompressed_filesize; sb 743 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 745 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG|S_IFLNK; /* regular file */ sb 747 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG; /* regular file */ sb 751 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = data->timestamp; sb 752 ext/phar/func_interceptors.c sb.st_atime.tv_sec = data->timestamp; sb 753 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = data->timestamp; sb 755 ext/phar/func_interceptors.c sb.st_mtime = data->timestamp; sb 756 ext/phar/func_interceptors.c sb.st_atime = data->timestamp; sb 757 ext/phar/func_interceptors.c sb.st_ctime = data->timestamp; sb 760 ext/phar/func_interceptors.c sb.st_size = 0; sb 761 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 762 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 764 ext/phar/func_interceptors.c sb.st_mode |= S_IFLNK; sb 768 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = data->timestamp; sb 769 ext/phar/func_interceptors.c sb.st_atime.tv_sec = data->timestamp; sb 770 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = data->timestamp; sb 772 ext/phar/func_interceptors.c sb.st_mtime = data->timestamp; sb 773 ext/phar/func_interceptors.c sb.st_atime = data->timestamp; sb 774 ext/phar/func_interceptors.c sb.st_ctime = data->timestamp; sb 780 ext/phar/func_interceptors.c sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); sb 783 ext/phar/func_interceptors.c sb.st_nlink = 1; sb 784 ext/phar/func_interceptors.c sb.st_rdev = -1; sb 786 ext/phar/func_interceptors.c sb.st_dev = 0xc; sb 789 ext/phar/func_interceptors.c sb.st_ino = data->inode; sb 792 ext/phar/func_interceptors.c sb.st_blksize = -1; sb 793 ext/phar/func_interceptors.c sb.st_blocks = -1; sb 795 ext/phar/func_interceptors.c phar_fancy_stat(&sb, type, return_value); sb 1765 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 1820 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 1832 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 2568 ext/phar/phar_object.c RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); sb 4302 ext/phar/phar_object.c } else if (!(ssb.sb.st_mode & S_IFDIR)) { sb 489 ext/phar/stream.c ssb->sb.st_size = data->uncompressed_filesize; sb 490 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 491 ext/phar/stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 494 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = data->timestamp; sb 495 ext/phar/stream.c ssb->sb.st_atime.tv_sec = data->timestamp; sb 496 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = data->timestamp; sb 498 ext/phar/stream.c ssb->sb.st_mtime = data->timestamp; sb 499 ext/phar/stream.c ssb->sb.st_atime = data->timestamp; sb 500 ext/phar/stream.c ssb->sb.st_ctime = data->timestamp; sb 503 ext/phar/stream.c ssb->sb.st_size = 0; sb 504 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 505 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 508 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = data->timestamp; sb 509 ext/phar/stream.c ssb->sb.st_atime.tv_sec = data->timestamp; sb 510 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = data->timestamp; sb 512 ext/phar/stream.c ssb->sb.st_mtime = data->timestamp; sb 513 ext/phar/stream.c ssb->sb.st_atime = data->timestamp; sb 514 ext/phar/stream.c ssb->sb.st_ctime = data->timestamp; sb 517 ext/phar/stream.c ssb->sb.st_size = 0; sb 518 ext/phar/stream.c ssb->sb.st_mode = 0777; sb 519 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 521 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = phar->max_timestamp; sb 522 ext/phar/stream.c ssb->sb.st_atime.tv_sec = phar->max_timestamp; sb 523 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = phar->max_timestamp; sb 525 ext/phar/stream.c ssb->sb.st_mtime = phar->max_timestamp; sb 526 ext/phar/stream.c ssb->sb.st_atime = phar->max_timestamp; sb 527 ext/phar/stream.c ssb->sb.st_ctime = phar->max_timestamp; sb 531 ext/phar/stream.c ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); sb 534 ext/phar/stream.c ssb->sb.st_nlink = 1; sb 535 ext/phar/stream.c ssb->sb.st_rdev = -1; sb 537 ext/phar/stream.c ssb->sb.st_dev = 0xc; sb 540 ext/phar/stream.c ssb->sb.st_ino = data->inode; sb 543 ext/phar/stream.c ssb->sb.st_blksize = -1; sb 544 ext/phar/stream.c ssb->sb.st_blocks = -1; sb 228 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR) { sb 238 ext/phar/util.c entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; sb 241 ext/phar/util.c entry.flags = ssb.sb.st_mode; sb 1333 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR && !dir) { sb 1341 ext/phar/util.c if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { sb 1212 ext/session/session.c zend_stat_t sb; sb 1217 ext/session/session.c if (VCWD_STAT(path, &sb) == -1) { sb 1223 ext/session/session.c strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); sb 1176 ext/sqlite3/sqlite3.c ssb->sb.st_size = sqlite3_stream->size; sb 1581 ext/standard/file.c ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev); sb 1582 ext/standard/file.c ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino); sb 1583 ext/standard/file.c ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); sb 1584 ext/standard/file.c ZVAL_LONG(&stat_nlink, stat_ssb.sb.st_nlink); sb 1585 ext/standard/file.c ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid); sb 1586 ext/standard/file.c ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid); sb 1593 ext/standard/file.c if ((int)stat_ssb.sb.st_rdev < 0) { sb 1594 ext/standard/file.c ZVAL_LONG(&stat_rdev, (int)stat_ssb.sb.st_rdev); sb 1596 ext/standard/file.c ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); sb 1599 ext/standard/file.c ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); sb 1604 ext/standard/file.c ZVAL_LONG(&stat_size, stat_ssb.sb.st_size); sb 1605 ext/standard/file.c ZVAL_LONG(&stat_atime, stat_ssb.sb.st_atime); sb 1606 ext/standard/file.c ZVAL_LONG(&stat_mtime, stat_ssb.sb.st_mtime); sb 1607 ext/standard/file.c ZVAL_LONG(&stat_ctime, stat_ssb.sb.st_ctime); sb 1609 ext/standard/file.c ZVAL_LONG(&stat_blksize, stat_ssb.sb.st_blksize); sb 1614 ext/standard/file.c ZVAL_LONG(&stat_blocks, stat_ssb.sb.st_blocks); sb 1711 ext/standard/file.c if (S_ISDIR(src_s.sb.st_mode)) { sb 1726 ext/standard/file.c if (S_ISDIR(dest_s.sb.st_mode)) { sb 1730 ext/standard/file.c if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { sb 1733 ext/standard/file.c if (src_s.sb.st_ino == dest_s.sb.st_ino && src_s.sb.st_dev == dest_s.sb.st_dev) { sb 902 ext/standard/filestat.c stat_sb = &ssb.sb; sb 907 ext/standard/filestat.c if(ssb.sb.st_uid==getuid()) { sb 911 ext/standard/filestat.c } else if(ssb.sb.st_gid==getgid()) { sb 924 ext/standard/filestat.c if(ssb.sb.st_gid==gids[i]) { sb 953 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_mode); sb 955 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_ino); sb 957 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_size); sb 959 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_uid); sb 961 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_gid); sb 963 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_atime); sb 965 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_mtime); sb 967 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_ctime); sb 969 ext/standard/filestat.c if (S_ISLNK(ssb.sb.st_mode)) { sb 972 ext/standard/filestat.c switch(ssb.sb.st_mode & S_IFMT) { sb 982 ext/standard/filestat.c php_error_docref(NULL, E_NOTICE, "Unknown file type (%d)", ssb.sb.st_mode&S_IFMT); sb 985 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode & wmask) != 0); sb 987 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&rmask)!=0); sb 989 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&xmask)!=0 && !S_ISDIR(ssb.sb.st_mode)); sb 991 ext/standard/filestat.c RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); sb 993 ext/standard/filestat.c RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); sb 995 ext/standard/filestat.c RETURN_BOOL(S_ISLNK(ssb.sb.st_mode)); sb 791 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so approximate one based on being readable */ sb 795 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFREG; sb 797 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFDIR; sb 814 ext/standard/ftp_fopen_wrapper.c if (ssb->sb.st_mode & S_IFDIR) { sb 815 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_size = 0; sb 820 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_size = atoi(tmp_line + 4); sb 860 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mtime = mktime(&tm); sb 864 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mtime = -1; sb 867 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_ino = 0; /* Unknown values */ sb 868 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_dev = 0; sb 869 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_uid = 0; sb 870 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_gid = 0; sb 871 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_atime = -1; sb 872 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_ctime = -1; sb 874 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_nlink = 1; sb 875 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_rdev = -1; sb 877 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_blksize = 4096; /* Guess since FTP won't expose this information */ sb 879 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_blocks = (int)((4095 + ssb->sb.st_size) / ssb->sb.st_blksize); /* emulate ceil */ sb 197 ext/standard/iptc.c zend_stat_t sb; sb 219 ext/standard/iptc.c zend_fstat(fileno(fp), &sb); sb 221 ext/standard/iptc.c spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); sb 223 ext/standard/iptc.c memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); sb 90 ext/standard/link.c zend_stat_t sb; sb 105 ext/standard/link.c ret = VCWD_LSTAT(link, &sb); sb 113 ext/standard/link.c RETURN_LONG((zend_long) sb.st_dev); sb 91 ext/standard/link_win32.c zend_stat_t sb; sb 98 ext/standard/link_win32.c ret = VCWD_STAT(link, &sb); sb 104 ext/standard/link_win32.c RETURN_LONG((zend_long) sb.st_dev); sb 155 ext/zip/lib/zip_source_filep.c struct stat sb; sb 157 ext/zip/lib/zip_source_filep.c if (stat(ctx->fname, &sb) < 0 || S_ISREG(sb.st_mode)) { sb 61 ext/zip/php_zip.c #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \ sb 62 ext/zip/php_zip.c if (zip_stat_index(za, index, flags, &sb) != 0) { \ sb 68 ext/zip/php_zip.c #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ sb 73 ext/zip/php_zip.c if (zip_stat(za, path, flags, &sb) != 0) { \ sb 139 ext/zip/php_zip.c struct zip_stat sb; sb 167 ext/zip/php_zip.c if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { sb 382 ext/zip/php_zip.c #define RETURN_SB(sb) \ sb 385 ext/zip/php_zip.c add_ascii_assoc_string(return_value, "name", (char *)(sb)->name); \ sb 386 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "index", (zend_long) (sb)->index); \ sb 387 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \ sb 388 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "size", (zend_long) (sb)->size); \ sb 389 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "mtime", (zend_long) (sb)->mtime); \ sb 390 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "comp_size", (zend_long) (sb)->comp_size); \ sb 391 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "comp_method", (zend_long) (sb)->comp_method); \ sb 1188 ext/zip/php_zip.c ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); sb 1319 ext/zip/php_zip.c RETURN_STRING((char *)zr_rsrc->sb.name); sb 1322 ext/zip/php_zip.c RETURN_LONG((zend_long) (zr_rsrc->sb.comp_size)); sb 1325 ext/zip/php_zip.c RETURN_LONG((zend_long) (zr_rsrc->sb.size)); sb 1328 ext/zip/php_zip.c switch (zr_rsrc->sb.comp_method) { sb 1359 ext/zip/php_zip.c RETURN_LONG((zend_long) (zr_rsrc->sb.comp_method)); sb 1566 ext/zip/php_zip.c struct zip_stat sb; sb 1593 ext/zip/php_zip.c idx = zip_stat(intern, s, 0, &sb); sb 1842 ext/zip/php_zip.c struct zip_stat sb; sb 1855 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(name), ZSTR_LEN(name), flags, sb); sb 1857 ext/zip/php_zip.c RETURN_SB(&sb); sb 1869 ext/zip/php_zip.c struct zip_stat sb; sb 1882 ext/zip/php_zip.c if (zip_stat_index(intern, index, flags, &sb) != 0) { sb 1885 ext/zip/php_zip.c RETURN_SB(&sb); sb 2049 ext/zip/php_zip.c struct zip_stat sb; sb 2062 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2115 ext/zip/php_zip.c struct zip_stat sb; sb 2128 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2190 ext/zip/php_zip.c struct zip_stat sb; sb 2203 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2264 ext/zip/php_zip.c struct zip_stat sb; sb 2277 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2388 ext/zip/php_zip.c struct zip_stat sb; sb 2403 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2404 ext/zip/php_zip.c if (zip_delete(intern, sb.index)) { sb 2453 ext/zip/php_zip.c struct zip_stat sb; sb 2472 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2474 ext/zip/php_zip.c if (zip_rename(intern, sb.index, (const char *)new_name)) { sb 2517 ext/zip/php_zip.c struct zip_stat sb; sb 2535 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2537 ext/zip/php_zip.c if (zip_unchange(intern, sb.index) != 0) { sb 2684 ext/zip/php_zip.c struct zip_stat sb; sb 2706 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(filename), ZSTR_LEN(filename), flags, sb); sb 2711 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2714 ext/zip/php_zip.c if (sb.size < 1) { sb 2719 ext/zip/php_zip.c len = sb.size; sb 2767 ext/zip/php_zip.c struct zip_stat sb; sb 2783 ext/zip/php_zip.c if (zip_stat(intern, ZSTR_VAL(filename), 0, &sb) != 0) { sb 69 ext/zip/php_zip.h struct zip_stat sb; sb 125 ext/zip/zip_stream.c struct zip_stat sb; sb 169 ext/zip/zip_stream.c if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) { sb 177 ext/zip/zip_stream.c ssb->sb.st_size = sb.size; sb 178 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 180 ext/zip/zip_stream.c ssb->sb.st_size = 0; sb 181 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 184 ext/zip/zip_stream.c ssb->sb.st_mtime = sb.mtime; sb 185 ext/zip/zip_stream.c ssb->sb.st_atime = sb.mtime; sb 186 ext/zip/zip_stream.c ssb->sb.st_ctime = sb.mtime; sb 187 ext/zip/zip_stream.c ssb->sb.st_nlink = 1; sb 188 ext/zip/zip_stream.c ssb->sb.st_rdev = -1; sb 190 ext/zip/zip_stream.c ssb->sb.st_blksize = -1; sb 191 ext/zip/zip_stream.c ssb->sb.st_blocks = -1; sb 193 ext/zip/zip_stream.c ssb->sb.st_ino = -1; sb 1333 main/main.c return ssb.sb.st_size; sb 620 main/php_ini.c zend_stat_t sb; sb 663 main/php_ini.c if (VCWD_STAT(ini_file, &sb) == 0) { sb 664 main/php_ini.c if (S_ISREG(sb.st_mode)) { sb 750 main/php_ini.c zend_stat_t sb; sb 756 main/php_ini.c if (VCWD_STAT(ini_file, &sb) == 0) { sb 757 main/php_ini.c if (S_ISREG(sb.st_mode)) { sb 109 main/php_streams.h zend_stat_t sb; /* regular info */ sb 213 main/streams/memory.c ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666; sb 215 main/streams/memory.c ssb->sb.st_size = ms->fsize; sb 216 main/streams/memory.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 219 main/streams/memory.c ssb->sb.st_mtime.tv_sec = timestamp; sb 220 main/streams/memory.c ssb->sb.st_atime.tv_sec = timestamp; sb 221 main/streams/memory.c ssb->sb.st_ctime.tv_sec = timestamp; sb 223 main/streams/memory.c ssb->sb.st_mtime = timestamp; sb 224 main/streams/memory.c ssb->sb.st_atime = timestamp; sb 225 main/streams/memory.c ssb->sb.st_ctime = timestamp; sb 228 main/streams/memory.c ssb->sb.st_nlink = 1; sb 229 main/streams/memory.c ssb->sb.st_rdev = -1; sb 231 main/streams/memory.c ssb->sb.st_dev = 0xC; sb 233 main/streams/memory.c ssb->sb.st_ino = 0; sb 236 main/streams/memory.c ssb->sb.st_blksize = -1; sb 240 main/streams/memory.c ssb->sb.st_blocks = -1; sb 143 main/streams/plain_wrapper.c zend_stat_t sb; sb 154 main/streams/plain_wrapper.c r = zend_fstat(fd, &d->sb); sb 248 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; sb 287 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; sb 595 main/streams/plain_wrapper.c memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); sb 690 main/streams/plain_wrapper.c if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { sb 691 main/streams/plain_wrapper.c range->length = data->sb.st_size - range->offset; sb 693 main/streams/plain_wrapper.c if (range->length == 0 || range->length > data->sb.st_size) { sb 694 main/streams/plain_wrapper.c range->length = data->sb.st_size; sb 696 main/streams/plain_wrapper.c if (range->offset >= data->sb.st_size) { sb 697 main/streams/plain_wrapper.c range->offset = data->sb.st_size; sb 1019 main/streams/plain_wrapper.c if ((r == 0 && !S_ISREG(self->sb.st_mode))) { sb 1069 main/streams/plain_wrapper.c return VCWD_LSTAT(url, &ssb->sb); sb 1074 main/streams/plain_wrapper.c return VCWD_LSTAT(url, &ssb->sb); sb 1078 main/streams/plain_wrapper.c return VCWD_STAT(url, &ssb->sb); sb 1144 main/streams/plain_wrapper.c zend_stat_t sb; sb 1146 main/streams/plain_wrapper.c if (VCWD_STAT(url_from, &sb) == 0) { sb 1148 main/streams/plain_wrapper.c if (VCWD_CHMOD(url_to, sb.st_mode)) { sb 1157 main/streams/plain_wrapper.c if (VCWD_CHOWN(url_to, sb.st_uid, sb.st_gid)) { sb 1205 main/streams/plain_wrapper.c zend_stat_t sb; sb 1235 main/streams/plain_wrapper.c if (VCWD_STAT(buf, &sb) == 0) { sb 1464 main/streams/streams.c if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { sb 1465 main/streams/streams.c max_len = ssbuf.sb.st_size + step; sb 1518 main/streams/streams.c if (ssbuf.sb.st_size == 0 sb 1520 main/streams/streams.c && S_ISREG(ssbuf.sb.st_mode) sb 843 main/streams/userspace.c ssb->sb.st_##name2 = zval_get_long(elem); \ sb 243 main/streams/xp_socket.c return zend_fstat(sock->socket, &ssb->sb); sb 138 sapi/cli/php_cli_server.c zend_stat_t sb; sb 1351 sapi/cli/php_cli_server.c zend_stat_t sb; sb 1388 sapi/cli/php_cli_server.c if (!zend_stat(buf, &sb)) { sb 1389 sapi/cli/php_cli_server.c if (sb.st_mode & S_IFDIR) { sb 1397 sapi/cli/php_cli_server.c if (!zend_stat(buf, &sb) && (sb.st_mode & S_IFREG)) { sb 1454 sapi/cli/php_cli_server.c request->sb = sb; sb 2002 sapi/cli/php_cli_server.c smart_str_append_unsigned_ex(&buffer, client->request.sb.st_size, 1); sb 2492 sapi/cli/php_cli_server.c zend_stat_t sb; sb 2494 sapi/cli/php_cli_server.c if (zend_stat(document_root, &sb)) { sb 2498 sapi/cli/php_cli_server.c if (!S_ISDIR(sb.st_mode)) { sb 165 sapi/fpm/fpm/fpm_conf.c struct stat sb; sb 167 sapi/fpm/fpm/fpm_conf.c if (stat(path, &sb) != 0) { sb 171 sapi/fpm/fpm/fpm_conf.c return (sb.st_mode & S_IFMT) == S_IFDIR; sb 282 sapi/phpdbg/phpdbg.c zend_stat_t sb; sb 285 sapi/phpdbg/phpdbg.c if (VCWD_STAT(ZSTR_VAL(exec), &sb) != FAILURE) { sb 286 sapi/phpdbg/phpdbg.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { sb 263 sapi/phpdbg/phpdbg_bp.c } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) { sb 318 sapi/phpdbg/phpdbg_prompt.c zend_stat_t sb; sb 320 sapi/phpdbg/phpdbg_prompt.c if (init_file && VCWD_STAT(init_file, &sb) != -1) { sb 404 sapi/phpdbg/phpdbg_prompt.c zend_stat_t sb; sb 406 sapi/phpdbg/phpdbg_prompt.c if (VCWD_STAT(param->str, &sb) != FAILURE) { sb 407 sapi/phpdbg/phpdbg_prompt.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { sb 1202 sapi/phpdbg/phpdbg_prompt.c zend_stat_t sb; sb 1204 sapi/phpdbg/phpdbg_prompt.c if (VCWD_STAT(param->str, &sb) != -1) { sb 558 win32/glob.c zend_stat_t sb; sb 569 win32/glob.c if (g_lstat(pathbuf, &sb, pglob)) sb 573 win32/glob.c !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) || sb 574 win32/glob.c (S_ISLNK(sb.st_mode) && sb 575 win32/glob.c (g_stat(pathbuf, &sb, pglob) == 0) && sb 576 win32/glob.c S_ISDIR(sb.st_mode)))) { sb 853 win32/glob.c g_lstat(fn, sb, pglob) sb 855 win32/glob.c zend_stat_t *sb; sb 863 win32/glob.c return((*pglob->gl_lstat)(buf, sb)); sb 864 win32/glob.c return(php_sys_lstat(buf, sb)); sb 868 win32/glob.c g_stat(fn, sb, pglob) sb 870 win32/glob.c zend_stat_t *sb; sb 878 win32/glob.c return((*pglob->gl_stat)(buf, sb)); sb 879 win32/glob.c return(php_sys_stat(buf, sb));