#47398 [Asn->Csd]: PDO_Firebird doesn't implements quoter correctly

From: Date: Sun, 15 Feb 2009 21:54:21 +0000
Subject: #47398 [Asn->Csd]: PDO_Firebird doesn't implements quoter correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133854@lists.php.net to get a copy of this message
 ID:          47398
 Updated by:  felipe@php.net
 Reported By: felipe@php.net
-Status:      Assigned
+Status:      Closed
 Bug Type:    PDO related
 PHP Version: 5.3CVS-2009-02-15 (CVS)
 Assigned To: felipe
 New Comment:

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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in 5.3 and HEAD.


Previous Comments:
------------------------------------------------------------------------

[2009-02-15 21:38:22] felipe@php.net

Description:
------------
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{|}~'));
var_dump($db->quote(''));


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


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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47398&edit=1



Thread (3 messages)

« previous php.bugs (#133854) next »