From ec58b74d7ff4909db0e050c8008d93c22402edd3 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 20 Dec 2005 14:27:04 +0000 Subject: MFB51: Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any string greater then 255 characters). --- main/php.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/php.h') 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 -- cgit v1.2.1