diff options
author | Adam Harvey <aharvey@php.net> | 2010-11-08 09:14:48 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2010-11-08 09:14:48 +0000 |
commit | 53544e36f29c4ad957e97b98901f917fc8fd5774 (patch) | |
tree | a3e3bb97b60945058297b29d1daac6b788b091b5 /tests | |
parent | c3557ba32eff1f430761362006312415b85590b2 (diff) | |
download | php-git-53544e36f29c4ad957e97b98901f917fc8fd5774.tar.gz |
Update the tests committed in r305098 (as part of the fix for bug #53226) to
use the PHP_MAXPATHLEN constant, as recommended by Pierre.
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-- |