|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-18 13:31 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 12:00:01 2025 UTC |
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'