Browse Source

Update the tests committed in r305098 (as part of the fix for bug #53226) to

use the PHP_MAXPATHLEN constant, as recommended by Pierre.
pull/12/head
Adam Harvey 16 years ago
parent
commit
53544e36f2
  1. 4
      tests/security/bug53226.phpt

4
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--

Loading…
Cancel
Save