PHP 4.0 Bug #6997 Updated: parse_str
| From: | Bug Database | Date: | Fri, 06 Oct 2000 01:57:42 +0000 |
| Subject: | PHP 4.0 Bug #6997 Updated: parse_str | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34314@lists.php.net to get a copy of this message | ||
ID: 6997
Updated by: stas
Reported By: sgarner@gameplanet.co.nz
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
This was added after 4.0.2. Wait for 4.0.3 to be out RSN.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-03 17:36:31] sgarner@gameplanet.co.nz
Using the second argument (arr) doesn't seem to work. No elements will be inserted into the
array by parse_str, and variables will still be created in the current scope.
Example:
<?php
$querystring = "foo=bar&bar=foo";
parse_str($querystring, $a);
var_dump($a);
?>
Will output "NULL", and:
<?php
var_dump($foo);
?>
...will output "bar".
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6997