cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.c php-src NEWS
| From: | Antony Dovgal | Date: | Thu, 03 Aug 2006 14:17:59 +0000 |
| Subject: | cvs: TSRM(PHP_5_2) / tsrm_virtual_cwd.c php-src NEWS | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5150@lists.php.net to get a copy of this message | ||
tony2001 Thu Aug 3 14:17:59 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/TSRM tsrm_virtual_cwd.c
Log:
MFH: fix #38276 (file_exists() works incorrectly with long filenames on Windows)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.179&r2=1.2027.2.547.2.180&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.179 php-src/NEWS:1.2027.2.547.2.180
--- php-src/NEWS:1.2027.2.547.2.179 Thu Aug 3 13:54:05 2006
+++ php-src/NEWS Thu Aug 3 14:17:58 2006
@@ -34,6 +34,8 @@
(Tony)
- Fixed bug #38278 (session_cache_expire()'s value does not match phpinfo's
session.cache_expire). (Tony)
+- Fixed bug #38276 (file_exists() works incorrectly with long filenames
+ on Windows). (Ilia, Tony)
- Fixed bug #38269 (fopen wrapper doesn't fail on invalid hostname with
curlwrappers enabled). (Tony)
- Fixed bug #38261 (openssl_x509_parse() leaks with invalid cert) (Pierre)
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.c?r1=1.74.2.9&r2=1.74.2.9.2.1&diff_format=u
Index: TSRM/tsrm_virtual_cwd.c
diff -u TSRM/tsrm_virtual_cwd.c:1.74.2.9 TSRM/tsrm_virtual_cwd.c:1.74.2.9.2.1
--- TSRM/tsrm_virtual_cwd.c:1.74.2.9 Sun Mar 5 18:57:54 2006
+++ TSRM/tsrm_virtual_cwd.c Thu Aug 3 14:17:58 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9 2006/03/05 18:57:54 derick Exp $ */
+/* $Id: tsrm_virtual_cwd.c,v 1.74.2.9.2.1 2006/08/03 14:17:58 tony2001 Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -706,7 +706,9 @@
}
CWD_STATE_COPY(&new_state, &CWDG(cwd));
- virtual_file_ex(&new_state, path, NULL, 1);
+ if (virtual_file_ex(&new_state, path, NULL, 1)) {
+ return -1;
+ }
f = fopen(new_state.cwd, mode);