diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/security/bug53226.phpt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/security/bug53226.phpt b/tests/security/bug53226.phpt index e462d3e9d7..9556e46687 100644 --- a/tests/security/bug53226.phpt +++ b/tests/security/bug53226.phpt @@ -10,9 +10,7 @@ create_directories(); var_dump(file_exists('./test/ok/ok.txt')); var_dump(file_exists('./test/foo')); -// Picked an arbitrarily large number that should be beyond PATH_MAX on every -// OS I know about. -$file = str_repeat('x', 40000); +$file = str_repeat('x', 2 * PHP_MAXPATHLEN); var_dump(file_exists("./test/$file")); ?> --CLEAN-- |