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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 21 17:01:58 2024 UTC