|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52 addslashes/stripslashes inconsistant
Submitted: 1998-02-10 17:26 UTC Modified: 1998-02-10 18:32 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0b4 OS: WinNT
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:
6 + 14 = ?
Subscribe to this entry?

 [1998-02-10 17:26 UTC] walton at nordicdms dot com
addslashes() inserts either ' or \ depending on the
setting of magic_quotes_sybase.

stripslashes() ignores magic_quotes_sybase, and only 
removes \.

As a result, ("a'b" == stripslashes(addslashes("a'b"))) 
succeeds when magic_quotes_sybase = 0, but fails 
when magic_quotes_sybase = 1.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 18:32 UTC] zeev
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 06:03:45 2022 UTC