summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-20 14:27:04 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-20 14:27:04 +0000
commitec58b74d7ff4909db0e050c8008d93c22402edd3 (patch)
tree52458833f2eb7a13f9cec8a489f8d230b73a7899 /main/php.h
parentad97cf20be082884ef41e43a4c147cd8a4295df5 (diff)
downloadphp-git-ec58b74d7ff4909db0e050c8008d93c22402edd3.tar.gz
MFB51: Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any
string greater then 255 characters).
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php.h b/main/php.h
index d3e13a181e..1639c52db4 100644
--- a/main/php.h
+++ b/main/php.h
@@ -248,6 +248,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