ID: 47398 Updated by: fel...@php.net Reported By: fel...@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] fel...@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