From c2b525eef18af6814de59769701447ab08c175d6 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Mon, 8 Nov 2010 09:14:48 +0000 Subject: [PATCH] Update the tests committed in r305098 (as part of the fix for bug #53226) to use the PHP_MAXPATHLEN constant, as recommended by Pierre. --- tests/security/bug53226.phpt | 4 +--- 1 file changed, 1 insertion(+), 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-- -- 2.40.0