php.net |  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
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:
MUST BE VALID
Solve the problem:
39 - 3 = ?
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 18:32 UTC] zeev
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 07:01:28 2025 UTC