From: Adam Harvey Date: Mon, 8 Nov 2010 09:14:48 +0000 (+0000) Subject: Update the tests committed in r305098 (as part of the fix for bug #53226) to X-Git-Tag: php-5.4.0alpha1~191^2~715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2b525eef18af6814de59769701447ab08c175d6;p=php Update the tests committed in r305098 (as part of the fix for bug #53226) to use the PHP_MAXPATHLEN constant, as recommended by Pierre. --- 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--