/PHP-7.4/Zend/ |
H A D | zend_stream.c | 45 if (!S_ISREG(buf.st_mode)) { in zend_stream_stdio_fsizer()
|
H A D | zend_virtual_cwd.c | 131 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 D | exif.c | 4434 if ((st.st_mode & S_IFMT) != S_IFREG) { in exif_read_from_impl()
|
/PHP-7.4/ext/ffi/ |
H A D | ffi.c | 3155 if ((buf.st_mode & S_IFMT) != S_IFREG) { in zend_ffi_load()
|
/PHP-7.4/ext/fileinfo/ |
H A D | fileinfo.c | 547 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 D | libmagic.patch | 2016 - 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 D | apprentice.c | 1312 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 D | buffer.c | 73 if (!S_ISREG(b->st.st_mode)) in buffer_fill()
|
H A D | fsmagic.c | 116 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 D | funcs.c | 231 ms->mode = b.st.st_mode; in file_buffer()
|
H A D | magic.c | 259 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
|
/PHP-7.4/ext/opcache/ |
H A D | zend_accelerator_module.c | 259 !S_ISDIR(buf.st_mode) ||
|
/PHP-7.4/ext/openssl/ |
H A D | openssl.c | 2698 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
|
/PHP-7.4/ext/phar/ |
H A D | func_interceptors.c | 495 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 D | phar.c | 1790 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 D | phar_object.c | 1690 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 D | stream.c | 492 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 D | util.c | 217 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 D | mod_files.c | 190 …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 D | conversions.c | 1427 if (S_ISSOCK(statbuf.st_mode)) { in to_zval_read_fd_array()
|
/PHP-7.4/ext/standard/ |
H A D | dir.c | 532 if (S_IFDIR != (s.st_mode & S_IFMT)) { in PHP_FUNCTION()
|
H A D | file.c | 1586 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 D | filestat.c | 878 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 D | ftp_fopen_wrapper.c | 801 …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 D | php_fopen_wrapper.c | 399 if (zend_fstat(fd, &st) == 0 && (st.st_mode & S_IFMT) == S_IFSOCK) { in php_stream_url_wrap_php()
|