From:             james at gogo dot co dot nz
Operating system: All
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  documentation for parse_str doesn't mention magic_quotes_gpc

Description:
------------
The documentation for parse_str
(http://nz2.php.net/manual/en/function.parse-str.php) does not mention
that the setting of magic_quotes_gpc directly effects the operation of
this function. 

Beside the fact that this is unexpected behaviour (religious wars about
the perceived value of MQGPC aside, any value you pass to parse_str, is
not part of get, post or cookies, unless it was getted, posted, or
cookied, in which case it's ALREADY been GPC'd and doesn't need to be
again) it should be made clear.

The documentation is also misleading by mentioning magic_quotes_runtime,
leading one to believe that only magic_quotes_runtime affects it (which
would be marginally more sensible).

I have added a user note to the documentation, but I think it deserves a
warning style box because it is a bit of a gotcha.



-- 
Edit bug report at http://bugs.php.net/?id=30830&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30830&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30830&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30830&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30830&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30830&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30830&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30830&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30830&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30830&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30830&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30830&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30830&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30830&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30830&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30830&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30830&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30830&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30830&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30830&r=mysqlcfg

Reply via email to