st_mode 69 Zend/zend_stream.c if (!S_ISREG(buf.st_mode)) { st_mode 118 Zend/zend_stream.c if (!S_ISREG(buf.st_mode)) { st_mode 365 Zend/zend_virtual_cwd.c buf->st_mode = S_IFLNK; st_mode 366 Zend/zend_virtual_cwd.c buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6)); st_mode 371 Zend/zend_virtual_cwd.c buf->st_mode |=; st_mode 376 Zend/zend_virtual_cwd.c buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG; st_mode 377 Zend/zend_virtual_cwd.c buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6)); st_mode 388 Zend/zend_virtual_cwd.c buf->st_mode |= (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)); st_mode 411 Zend/zend_virtual_cwd.c if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode)) st_mode 422 Zend/zend_virtual_cwd.c if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode)) st_mode 1088 Zend/zend_virtual_cwd.c if (save && S_ISLNK(st.st_mode)) { st_mode 1120 Zend/zend_virtual_cwd.c directory = S_ISDIR(st.st_mode); st_mode 3860 ext/exif/exif.c if ((st.st_mode & S_IFMT) != S_IFREG) { st_mode 544 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 563 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 1241 ext/fileinfo/libmagic/apprentice.c if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) { st_mode 1258 ext/fileinfo/libmagic/apprentice.c if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { st_mode 2828 ext/fileinfo/libmagic/apprentice.c if (st.sb.st_mode & S_IFDIR) { st_mode 134 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISUID) st_mode 139 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISGID) st_mode 144 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISVTX) st_mode 150 ext/fileinfo/libmagic/fsmagic.c switch (sb->st_mode & S_IFMT) { st_mode 254 ext/fileinfo/libmagic/fsmagic.c file_error(ms, 0, "invalid mode 0%o", sb->st_mode); st_mode 122 ext/fileinfo/libmagic/magic.c if (S_ISDIR(st.st_mode)) { st_mode 391 ext/fileinfo/libmagic/magic.c if (unreadable_info(ms, sb.st_mode, inname) == -1) st_mode 255 ext/opcache/zend_accelerator_module.c !S_ISDIR(buf.st_mode) || st_mode 2263 ext/openssl/openssl.c if ((sb.st_mode & S_IFREG) == S_IFREG) { st_mode 483 ext/phar/func_interceptors.c RETURN_LONG((zend_long)stat_sb->st_mode); st_mode 511 ext/phar/func_interceptors.c if (S_ISLNK(stat_sb->st_mode)) { st_mode 514 ext/phar/func_interceptors.c switch(stat_sb->st_mode & S_IFMT) { st_mode 518 ext/phar/func_interceptors.c php_error_docref(NULL, E_NOTICE, "Unknown file type (%u)", stat_sb->st_mode & S_IFMT); st_mode 521 ext/phar/func_interceptors.c RETURN_BOOL((stat_sb->st_mode & wmask) != 0); st_mode 523 ext/phar/func_interceptors.c RETURN_BOOL((stat_sb->st_mode&rmask)!=0); st_mode 525 ext/phar/func_interceptors.c RETURN_BOOL((stat_sb->st_mode&xmask)!=0 && !S_ISDIR(stat_sb->st_mode)); st_mode 527 ext/phar/func_interceptors.c RETURN_BOOL(S_ISREG(stat_sb->st_mode)); st_mode 529 ext/phar/func_interceptors.c RETURN_BOOL(S_ISDIR(stat_sb->st_mode)); st_mode 531 ext/phar/func_interceptors.c RETURN_BOOL(S_ISLNK(stat_sb->st_mode)); st_mode 541 ext/phar/func_interceptors.c ZVAL_LONG(&stat_mode, stat_sb->st_mode); st_mode 670 ext/phar/func_interceptors.c sb.st_mode = 0777; st_mode 671 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 716 ext/phar/func_interceptors.c sb.st_mode = 0777; st_mode 717 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 743 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; st_mode 745 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG|S_IFLNK; /* regular file */ st_mode 747 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG; /* regular file */ st_mode 761 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; st_mode 762 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 764 ext/phar/func_interceptors.c sb.st_mode |= S_IFLNK; st_mode 780 ext/phar/func_interceptors.c sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); st_mode 1765 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 1820 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 1832 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 2568 ext/phar/phar_object.c RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); st_mode 4302 ext/phar/phar_object.c } else if (!(ssb.sb.st_mode & S_IFDIR)) { st_mode 490 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; st_mode 491 ext/phar/stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ st_mode 504 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; st_mode 505 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 518 ext/phar/stream.c ssb->sb.st_mode = 0777; st_mode 519 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 531 ext/phar/stream.c ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); st_mode 228 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR) { st_mode 241 ext/phar/util.c entry.flags = ssb.sb.st_mode; st_mode 1333 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR && !dir) { st_mode 1341 ext/phar/util.c if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { st_mode 189 ext/session/mod_files.c if(PG(open_basedir) && lstat(buf, &sbuf) == 0 && S_ISLNK(sbuf.st_mode) && php_check_open_basedir(buf)) { st_mode 1423 ext/sockets/conversions.c if (S_ISSOCK(statbuf.st_mode)) { st_mode 26049 ext/sqlite3/libsqlite/sqlite3.c && (statbuf.st_mode&0777)!=m st_mode 29778 ext/sqlite3/libsqlite/sqlite3.c pShmNode->h = robust_open(zShmFilename, openFlags, (sStat.st_mode&0777)); st_mode 30901 ext/sqlite3/libsqlite/sqlite3.c if( !S_ISDIR(buf.st_mode) ) continue; st_mode 31081 ext/sqlite3/libsqlite/sqlite3.c *pMode = sStat.st_mode & 0777; st_mode 32380 ext/sqlite3/libsqlite/sqlite3.c mode_t cmode = buf.st_mode&(S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP | st_mode 540 ext/standard/dir.c if (S_IFDIR != (s.st_mode & S_IFMT)) { st_mode 1583 ext/standard/file.c ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); st_mode 1711 ext/standard/file.c if (S_ISDIR(src_s.sb.st_mode)) { st_mode 1726 ext/standard/file.c if (S_ISDIR(dest_s.sb.st_mode)) { st_mode 953 ext/standard/filestat.c RETURN_LONG((zend_long)ssb.sb.st_mode); st_mode 969 ext/standard/filestat.c if (S_ISLNK(ssb.sb.st_mode)) { st_mode 972 ext/standard/filestat.c switch(ssb.sb.st_mode & S_IFMT) { st_mode 982 ext/standard/filestat.c php_error_docref(NULL, E_NOTICE, "Unknown file type (%d)", ssb.sb.st_mode&S_IFMT); st_mode 985 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode & wmask) != 0); st_mode 987 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&rmask)!=0); st_mode 989 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&xmask)!=0 && !S_ISDIR(ssb.sb.st_mode)); st_mode 991 ext/standard/filestat.c RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); st_mode 993 ext/standard/filestat.c RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); st_mode 995 ext/standard/filestat.c RETURN_BOOL(S_ISLNK(ssb.sb.st_mode)); st_mode 1005 ext/standard/filestat.c ZVAL_LONG(&stat_mode, stat_sb->st_mode); st_mode 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 */ st_mode 795 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFREG; st_mode 797 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFDIR; st_mode 814 ext/standard/ftp_fopen_wrapper.c if (ssb->sb.st_mode & S_IFDIR) { st_mode 398 ext/standard/php_fopen_wrapper.c if (zend_fstat(fd, &st) == 0 && (st.st_mode & S_IFMT) == S_IFSOCK) { st_mode 154 ext/standard/random.c !(S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode)) st_mode 156 ext/standard/random.c !S_ISCHR(st.st_mode) st_mode 118 ext/zip/lib/mkstemp.c if (!S_ISDIR(sbuf.st_mode)) { st_mode 157 ext/zip/lib/zip_source_filep.c if (stat(ctx->fname, &sb) < 0 || S_ISREG(sb.st_mode)) { st_mode 434 ext/zip/lib/zip_source_filep.c else if ((fst.st_mode&S_IFMT) == S_IFREG) { st_mode 582 ext/zip/php_zip.c if (S_IFDIR != (s.st_mode & S_IFMT)) { st_mode 675 ext/zip/php_zip.c if (S_IFDIR == (s.st_mode & S_IFMT)) { st_mode 178 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ st_mode 181 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ st_mode 259 main/main.c if (VCWD_REALPATH(search_path, binary_location) && !VCWD_ACCESS(binary_location, X_OK) && VCWD_STAT(binary_location, &s) == 0 && S_ISREG(s.st_mode)) { st_mode 552 main/php_ini.c if (!((statbuf.st_mode & S_IFMT) == S_IFDIR)) { st_mode 664 main/php_ini.c if (S_ISREG(sb.st_mode)) { st_mode 757 main/php_ini.c if (S_ISREG(sb.st_mode)) { st_mode 213 main/streams/memory.c ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666; st_mode 216 main/streams/memory.c ssb->sb.st_mode |= S_IFREG; /* regular file */ st_mode 248 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; st_mode 287 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; st_mode 1019 main/streams/plain_wrapper.c if ((r == 0 && !S_ISREG(self->sb.st_mode))) { st_mode 1148 main/streams/plain_wrapper.c if (VCWD_CHMOD(url_to, sb.st_mode)) { st_mode 1520 main/streams/streams.c && S_ISREG(ssbuf.sb.st_mode) st_mode 1226 sapi/cgi/cgi_main.c if (zend_stat(pt, &st) == 0 && S_ISREG(st.st_mode)) { st_mode 1389 sapi/cli/php_cli_server.c if (sb.st_mode & S_IFDIR) { st_mode 1397 sapi/cli/php_cli_server.c if (!zend_stat(buf, &sb) && (sb.st_mode & S_IFREG)) { st_mode 2498 sapi/cli/php_cli_server.c if (!S_ISDIR(sb.st_mode)) { st_mode 171 sapi/fpm/fpm/fpm_conf.c return (sb.st_mode & S_IFMT) == S_IFDIR; st_mode 1185 sapi/fpm/fpm/fpm_main.c if (stat(pt, &st) == 0 && S_ISREG(st.st_mode)) { st_mode 701 sapi/litespeed/lsapilib.c if ( st.st_mode & 0077 ) st_mode 286 sapi/phpdbg/phpdbg.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { st_mode 263 sapi/phpdbg/phpdbg_bp.c } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) { st_mode 407 sapi/phpdbg/phpdbg_prompt.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { st_mode 573 win32/glob.c !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) || st_mode 574 win32/glob.c (S_ISLNK(sb.st_mode) && st_mode 576 win32/glob.c S_ISDIR(sb.st_mode)))) {