|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47398 PDO_Firebird doesn't implements quoter correctly
Submitted: 2009-02-15 21:38 UTC Modified: 2009-02-15 21:54 UTC
From: Assigned: felipe
Status: Closed Package: PDO related
PHP Version: 5.3CVS-2009-02-15 (CVS) OS:
Private report: No CVE-ID:
 [2009-02-15 21:38 UTC]
PDO_firebird doesn't add the initial and final quotes as other drivers and is not escaping quotes. Because this behavior currently pdo_033.phpt is failing.

Reproduce code:
var_dump($db->quote(' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'));

Expected result:
string(98) "' !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'"
string(2) "''"

Actual result:
string(96) " !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-15 21:54 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in 5.3 and HEAD.
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Oct 05 01:01:33 2015 UTC