Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 46) sorted by path

12

/PHP-7.4/Zend/
H A Dzend_stream.c45 if (!S_ISREG(buf.st_mode)) { in zend_stream_stdio_fsizer()
H A Dzend_virtual_cwd.c131 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode)) in php_is_dir_ok()
142 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode)) in php_is_file_ok()
911 if (save && S_ISLNK(st.st_mode)) { in tsrm_realpath_r()
943 directory = S_ISDIR(st.st_mode); in tsrm_realpath_r()
/PHP-7.4/ext/exif/
H A Dexif.c4434 if ((st.st_mode & S_IFMT) != S_IFREG) { in exif_read_from_impl()
/PHP-7.4/ext/ffi/
H A Dffi.c3155 if ((buf.st_mode & S_IFMT) != S_IFREG) { in zend_ffi_load()
/PHP-7.4/ext/fileinfo/
H A Dfileinfo.c547 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
562 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
H A Dlibmagic.patch2016 - sb->st_mode = S_IFBLK;
2021 - sb->st_mode |= S_IFCHR;
2022 - sb->st_mode &= ~S_IFREG;
2025 - sb->st_mode |= S_IFIFO;
2026 - sb->st_mode &= ~S_IFREG;
2040 switch (sb->st_mode & S_IFMT) {
2391 ms->mode = b.st.st_mode;
2759 - if (S_ISDIR(st.st_mode)) {
2933 - if (okstat && S_ISFIFO(sb.st_mode))
2943 - sb.st_mode = S_IFBLK;
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c1312 if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) { in apprentice_load()
1329 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
3007 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
H A Dbuffer.c73 if (!S_ISREG(b->st.st_mode)) in buffer_fill()
H A Dfsmagic.c116 if (sb->st_mode & S_ISUID) in file_fsmagic()
121 if (sb->st_mode & S_ISGID) in file_fsmagic()
126 if (sb->st_mode & S_ISVTX) in file_fsmagic()
132 switch (sb->st_mode & S_IFMT) { in file_fsmagic()
240 file_error(ms, 0, "invalid mode 0%o", sb->st_mode); in file_fsmagic()
H A Dfuncs.c231 ms->mode = b.st.st_mode; in file_buffer()
H A Dmagic.c259 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_module.c259 !S_ISDIR(buf.st_mode) ||
/PHP-7.4/ext/openssl/
H A Dopenssl.c2698 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
/PHP-7.4/ext/phar/
H A Dfunc_interceptors.c495 if (S_ISLNK(stat_sb->st_mode)) { in phar_fancy_stat()
498 switch(stat_sb->st_mode & S_IFMT) { in phar_fancy_stat()
509 RETURN_BOOL((stat_sb->st_mode&xmask)!=0 && !S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
511 RETURN_BOOL(S_ISREG(stat_sb->st_mode)); in phar_fancy_stat()
513 RETURN_BOOL(S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
515 RETURN_BOOL(S_ISLNK(stat_sb->st_mode)); in phar_fancy_stat()
525 ZVAL_LONG(&stat_mode, stat_sb->st_mode); in phar_fancy_stat()
648 sb.st_mode = 0777; in phar_file_stat()
688 sb.st_mode = 0777; in phar_file_stat()
724 sb.st_mode |= S_IFLNK; in phar_file_stat()
[all …]
H A Dphar.c1790 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1845 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1857 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
H A Dphar_object.c1690 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_build()
2628 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD()
3694 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_add_file()
4402 } else if (!(ssb.sb.st_mode & S_IFDIR)) { in PHP_METHOD()
H A Dstream.c492 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_dostat()
493 ssb->sb.st_mode |= S_IFREG; /* regular file */ in phar_dostat()
500 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_dostat()
501 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ in phar_dostat()
508 ssb->sb.st_mode = 0777; in phar_dostat()
509 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ in phar_dostat()
515 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
H A Dutil.c217 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
230 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1322 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
1330 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
/PHP-7.4/ext/session/
H A Dmod_files.c190 …if(PG(open_basedir) && lstat(buf, &sbuf) == 0 && S_ISLNK(sbuf.st_mode) && php_check_open_basedir(b… in ps_files_open()
/PHP-7.4/ext/sockets/
H A Dconversions.c1427 if (S_ISSOCK(statbuf.st_mode)) { in to_zval_read_fd_array()
/PHP-7.4/ext/standard/
H A Ddir.c532 if (S_IFDIR != (s.st_mode & S_IFMT)) { in PHP_FUNCTION()
H A Dfile.c1586 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION()
1705 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx()
1720 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx()
H A Dfilestat.c878 RETURN_LONG((zend_long)ssb.sb.st_mode); in php_stat()
894 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
897 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
907 php_error_docref(NULL, E_NOTICE, "Unknown file type (%d)", ssb.sb.st_mode&S_IFMT); in php_stat()
910 RETURN_BOOL((ssb.sb.st_mode & wmask) != 0); in php_stat()
912 RETURN_BOOL((ssb.sb.st_mode&rmask)!=0); in php_stat()
914 RETURN_BOOL((ssb.sb.st_mode&xmask)!=0); in php_stat()
916 RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); in php_stat()
918 RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); in php_stat()
920 RETURN_BOOL(S_ISLNK(ssb.sb.st_mode)); in php_stat()
[all …]
H A Dftp_fopen_wrapper.c801 …ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so approximate one based on bei… in php_stream_ftp_url_stat()
805 ssb->sb.st_mode |= S_IFREG; in php_stream_ftp_url_stat()
807 ssb->sb.st_mode |= S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH; in php_stream_ftp_url_stat()
824 if (ssb->sb.st_mode & S_IFDIR) { in php_stream_ftp_url_stat()
H A Dphp_fopen_wrapper.c399 if (zend_fstat(fd, &st) == 0 && (st.st_mode & S_IFMT) == S_IFSOCK) { in php_stream_url_wrap_php()

Completed in 274 milliseconds

12