PHP 4.0 Bug #9462: NULL bute eats rest of string
| From: | tharbad at kaotik dot org | Date: | Mon, 26 Feb 2001 14:17:33 +0000 |
| Subject: | PHP 4.0 Bug #9462: NULL bute eats rest of string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47564@lists.php.net to get a copy of this message | ||
From: tharbad@kaotik.org
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description: NULL bute eats rest of string
I'm not sure if this is a bug or feature, comments are apreciated.
http://bugs.horde.org/show_bug.cgi?id=621
Example:
<quote>
include($string . ".php");
</quote>
with "magic_quotes_gpc = On" (php.ini) calling test.php?string=test%00
result: Warning: Failed opening 'test\0.php' for inclusion
with "magic_quotes_gpc = Off", same request
result: Warning: Failed opening 'test' for inclusion
--
Edit Bug report at: http://bugs.php.net/?id=9462&edit=1