svn: /php/php-src/ branches/PHP_5_3/tests/security/bug53226.phpt trunk/tests/security/bug53226.phpt
| From: | Adam Harvey | Date: | Mon, 08 Nov 2010 09:14:48 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/tests/security/bug53226.phpt trunk/tests/security/bug53226.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63782@lists.php.net to get a copy of this message | ||
aharvey Mon, 08 Nov 2010 09:14:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305191
Log:
Update the tests committed in r305098 (as part of the fix for bug #53226) to
use the PHP_MAXPATHLEN constant, as recommended by Pierre.
Bug: http://bugs.php.net/53226 (error getting bug
information)
Changed paths:
U php/php-src/branches/PHP_5_3/tests/security/bug53226.phpt
U php/php-src/trunk/tests/security/bug53226.phpt
Modified: php/php-src/branches/PHP_5_3/tests/security/bug53226.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/tests/security/bug53226.phpt 2010-11-08 06:35:14 UTC (rev 305190)
+++ php/php-src/branches/PHP_5_3/tests/security/bug53226.phpt 2010-11-08 09:14:48 UTC (rev 305191)
@@ -10,9 +10,7 @@
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--
Modified: php/php-src/trunk/tests/security/bug53226.phpt
===================================================================
--- php/php-src/trunk/tests/security/bug53226.phpt 2010-11-08 06:35:14 UTC (rev 305190)
+++ php/php-src/trunk/tests/security/bug53226.phpt 2010-11-08 09:14:48 UTC (rev 305191)
@@ -10,9 +10,7 @@
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--