ID: 50206 Updated by: il...@php.net Reported By: php at die-optimisten dot net -Status: Open +Status: Bogus Bug Type: PDO related Operating System: Debian 5 Lenny PHP Version: 5.2.11 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The param type is largely used by the driver when escaping for binary and non-binary data differs. All other types will be treated the same by most drivers. Previous Comments: ------------------------------------------------------------------------ [2009-11-17 17:46:06] php at die-optimisten dot net Description: ------------ PDO::quote() with second parameter PDO::PARAM_INT, quotes an integer like a string. PS: phpinfo() says: PHP Version 5.2.6-1+lenny3 Cant it select in your drop-down. PPS: Your captcha is hard. Reproduce code: --------------- $Pdo = new PDO('mysql:host=127.0.0.1', 'root', 'secret'); $Pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $Pdo->query('USE test'); echo $Pdo->quote(42, PDO::PARAM_INT); Expected result: ---------------- 42 Actual result: -------------- '42' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50206&edit=1