php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Pull Requests

History

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).
1
1Jim

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 14:01:28 2024 UTC