|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15824 magic_quotes_sybase and addslashes/stripslashes
Submitted: 2002-03-01 17:56 UTC Modified: 2002-06-18 13:52 UTC
From: jlp at ccil dot org Assigned:
Status: Closed Package: Strings related
PHP Version: 4.1.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 - 31 = ?
Subscribe to this entry?

 [2002-03-01 17:56 UTC] jlp at ccil dot org
with magic_quotes_sybase enabled, addslashes will replace single quotes with double single quotes and NUL's 
with \NUL's.  stripslashes will change the doubled single quotes back to single quotes, but the 
backslash-escaped NUL's will remain escaped.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-06 06:09 UTC]
I think this is fixed in CVS. If that's not the case, reopen this report.
 [2002-06-07 18:30 UTC] jlp at ccil dot org
nope.  code has changed slightly, but logic is still the same.
 [2002-06-18 07:53 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

 [2002-06-18 13:52 UTC] jlp at ccil dot org
I'm not convinced that the fix should be on the strip side instead of the add side, but it's a definite goodness to have the functions be inverses of each other.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 01:01:28 2024 UTC