php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30830 documentation for parse_str doesn't mention magic_quotes_gpc
Submitted: 2004-11-18 17:15 UTC Modified: 2004-11-27 10:26 UTC
From: james at gogo dot co dot nz Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: james at gogo dot co dot nz
New email:
PHP Version: OS:

 

 [2004-11-18 17:15 UTC] 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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-27 10:26 UTC] vrana@php.net
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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Mar 04 21:00:01 2026 UTC