cvs: TSRM / tsrm_virtual_cwd.c

From: Date: Tue, 24 Jul 2007 09:07:50 +0000
Subject: cvs: TSRM / tsrm_virtual_cwd.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5921@lists.php.net to get a copy of this message
dmitry Tue Jul 24 09:07:50 2007 UTC Modified files: /TSRM tsrm_virtual_cwd.c Log: Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.113&r2=1.114&diff_format=u Index: TSRM/tsrm_virtual_cwd.c diff -u TSRM/tsrm_virtual_cwd.c:1.113 TSRM/tsrm_virtual_cwd.c:1.114 --- TSRM/tsrm_virtual_cwd.c:1.113 Mon Jul 23 08:57:20 2007 +++ TSRM/tsrm_virtual_cwd.c Tue Jul 24 09:07:50 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.c,v 1.113 2007/07/23 08:57:20 dmitry Exp $ */ +/* $Id: tsrm_virtual_cwd.c,v 1.114 2007/07/24 09:07:50 dmitry Exp $ */ #include <sys/types.h> #include <sys/stat.h> @@ -565,6 +565,13 @@ #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);

« previous php.zend-engine.cvs (#5921) next »