For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2004 > #30830 [Opn->Csd]: documentation for parse_str doesn't mention magic_quotes_gpc









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #30830 [Opn->Csd]: documentation for parse_str doesn't mention magic_quotes_gpc
vrana@php.net

2004-11-27, 8:55 am

ID: 30830
Updated by: vrana@php.net
Reported By: james at gogo dot co dot nz
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: All
PHP Version: Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

Already fixed by Sean. I just changed See also.


Previous Comments:
------------------------------------------------------------------------

[2004-11-18 17:15:35] james at gogo dot co dot nz

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 this bug report at http://bugs.php.net/?id=30830&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com