Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash

This commit is contained in:
Dmitry Stogov 2007-07-24 09:07:33 +00:00
parent 5cdae5bdbb
commit db97db9430
2 changed files with 9 additions and 0 deletions

2
NEWS
View File

@ -62,6 +62,8 @@ PHP NEWS
- Fixed bug #42072 (No warning message for clearstatcache() with arguments).
(Ilia)
- Fixed bug #42071 (ini scanner allows using NULL as option name). (Jani)
- Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard
char or trailing slash. (Dmitry)
- Fixed bug #42019 (configure option --with-adabas=DIR does not work). (Jani)
- Fixed bug #42015 (ldap_rename(): server error "DSA is unwilling to perform").
(bob at mroczka dot com, Jani)

View File

@ -565,6 +565,13 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#endif
no_realpath:
#ifdef TSRM_WIN32
if (memchr(path, '*', path_length) ||
memchr(path, '?', path_length)) {
return 1;
}
#endif
free_path = path_copy = tsrm_strndup(path, path_length);
CWD_STATE_COPY(&old_state, state);