Bug #4174: Bug when using ' as a value in a variable
| From: | shr at dmi dot dk | Date: | Tue, 18 Apr 2000 10:27:19 +0000 |
| Subject: | Bug #4174: Bug when using ' as a value in a variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17999@lists.php.net to get a copy of this message | ||
From: shr@dmi.dk
Operating system: UNIX
PHP version: 3.0.16
PHP Bug Type: Reproduceable crash
Bug description: Bug when using ' as a value in a variable
Earlier I've reported a bug on using the char ' as a value in a variable, now tested it on
the php version 4.0b3, the problem persist to exist.
I've tested with this little program:
<FORM ACTION="test.php3" method="get">
<?php
if ($bugger)
echo "<INPUT type=\"hidden\" name=\"bugger\"
value=\"$bugger\">\n";
else
echo "<INPUT type=\"hidden\" name=\"bugger\"
value=\"'\">\n";
?>
<INPUT type="submit" value=" ged "></FORM>
<?php
echo "Bugger=$bugger kode=".rawurlencode("$bugger");
?>
Just make a file named test.php3 with code above and run it. It should show the
problem i detail.