mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any
string greater then 255 characters).
This commit is contained in:
parent
5df2f5df42
commit
cd82349b9e
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue