Re: PHP 4.0 Bug #6267 Updated: parse_str fails to parse strings
| From: | Stanislav Malyshev | Date: | Mon, 21 Aug 2000 14:23:40 +0000 |
| Subject: | Re: PHP 4.0 Bug #6267 Updated: parse_str fails to parse strings | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-30056@lists.php.net to get a copy of this message | ||
RL>> It should probably return an array in either case. When register_globals
RL>> is on it would also populate the current symbol table. One could even
RL>> argue that when register_globals is off then parse_str() should still be
RL>> able to populate the current symbol table as long as that current symbol
RL>> table is not the global one. ie. if used in a function it would create
RL>> variables in that function's scope. That would probably confuse people
RL>> though.
I think returning an array (in either case) is a logical thing to do. This
will require some changes to php_treat_variables, so maybe it should be
done after 4.0.2.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106