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 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:
MUST BE VALID
Solve the problem:
46 - 38 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 20:01:28 2024 UTC