]> granicus.if.org Git - php/commitdiff
Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any
authorIlia Alshanetsky <iliaa@php.net>
Tue, 20 Dec 2005 14:24:24 +0000 (14:24 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 20 Dec 2005 14:24:24 +0000 (14:24 +0000)
string greater then 255 characters).

NEWS
main/php.h

diff --git a/NEWS b/NEWS
index dc0a65b672b70414fa3a52b2ffeffbcafbabbc5a..d2e2f01b3de004d9514599cfdb6cfd5a7c249d8f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -95,6 +95,8 @@ PHP                                                                        NEWS
 - Fixed bug #34429 (Output buffering cannot be turned off with FastCGI).
   (Dmitry, Ilya)
 - Fixed bug #34359 (Possible crash inside fopen http wrapper). (Ilia,Sara,Nuno)
+- Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any string 
+  greater then 255 characters). (Nuno,Ilia)
 - Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if 
   display_startup_error is off). (Ilia)
 
index ba7c2ca2a8bfeb8857a4b75ab2450012b847ae45..68638f18589f5e5a001f03891c3055faffbdf60e 100644 (file)
@@ -246,6 +246,8 @@ END_EXTERN_C()
 #ifndef MAXPATHLEN
 # ifdef PATH_MAX
 #  define MAXPATHLEN PATH_MAX
+# elif defined(MAX_PATH)
+#  define MAXPATHLEN MAX_PATH
 # else
 #  define MAXPATHLEN 256    /* Should be safe for any weird systems that do not define it */
 # endif