|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-11-05 15:05 UTC] mbeccati@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: mbeccati
[2014-11-06 15:38 UTC] mbeccati@php.net
[2014-11-06 15:38 UTC] mbeccati@php.net
-Status: Assigned
+Status: Closed
[2014-11-06 15:38 UTC] mbeccati@php.net
[2014-11-06 15:38 UTC] mbeccati@php.net
[2014-11-07 06:57 UTC] dmitry@php.net
[2014-11-07 06:57 UTC] dmitry@php.net
[2014-11-18 20:34 UTC] ab@php.net
[2014-11-18 20:34 UTC] ab@php.net
[2014-11-18 20:34 UTC] ab@php.net
[2016-07-20 11:40 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ The fix for #62593 is not handling non-bool or int values correctly when bound as PDO::PARAM_BOOL. Test script: --------------- $db = new PDO("..."); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $query = $db->prepare('SELECT :foo IS FALSE as val_is_false'); $value = '0'; $query->bindParam(':foo', $value, PDO::PARAM_BOOL); $query->execute(); var_dump($query->fetchColumn()); Expected result: ---------------- bool(true) Actual result: -------------- bool(false)