|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1370 The sybase module doesn't escape ' characters
Submitted: 1999-05-02 20:26 UTC Modified: 1999-05-12 10:16 UTC
From: pettern at thule dot no Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 3.0.7 OS: Redhat Linux 5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pettern at thule dot no
New email:
PHP Version: OS:


 [1999-05-02 20:26 UTC] pettern at thule dot no
The mysql module escapes various characters like " by adding a \ before the character to be escaped. The Sybase module does not escape the ' character by prepending an extra ' as it should do, causing Sybase to complain.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-02 20:52 UTC] Jim Winstead <jimw at php dot net>
Actually, the mysql module doesn't do any escaping. This is handled
1by the magic_quotes settings in your php3.ini (or Apache configuration),
1and there's a special flag to do the quoting Sybase-style (called
1magic_quotes_sybase, if memory serves me right).

 [1999-05-12 10:16 UTC] rasmus at cvs dot php dot net
Jim's answer should take care of this appropriately.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 13:03:50 2022 UTC