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