|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54365 addslashes says that magic_quotes_gpc is on but it's not the case
Submitted: 2011-03-24 08:24 UTC Modified: 2011-03-24 08:40 UTC
From: Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2011-03-24 08:24 UTC]
From manual page:
Fix the following paragraph because magic_quotes_gpc is off now by default:

The PHP directive magic_quotes_gpc is on by default, and it essentially runs 
addslashes() on all GET, POST, and COOKIE data. Do not use addslashes() on 
strings that have already been escaped with magic_quotes_gpc as you'll then do 
double escaping. The function get_magic_quotes_gpc() may come in handy for 
checking this.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-24 08:36 UTC]
-Status: Open +Status: Wont fix
 [2011-03-24 08:36 UTC]
Depressingly, it's still on by default. (Check main/main.c in trunk if you don't believe me.)
 [2011-03-24 08:40 UTC]
Oops, sorry.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC