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

From: Date: Sun, 15 Feb 2009 21:38:34 +0000
Subject: #47398 [Opn->Asn]: PDO_Firebird doesn't implements quoter correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133851@lists.php.net to get a copy of this message
ID: 47398 Updated by: felipe@php.net Reported By: felipe@php.net -Status: Open +Status: Assigned Bug Type: PDO related PHP Version: 5.3CVS-2009-02-15 (CVS) -Assigned To: +Assigned To: felipe 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

« previous php.bugs (#133851) next »