|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2024-07-19 21:46 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2024-07-19 21:46 UTC] cmb@php.net
[2024-07-24 23:57 UTC] morozov at tut dot by
-Status: Feedback
+Status: Assigned
[2024-07-24 23:57 UTC] morozov at tut dot by
[2024-07-25 09:30 UTC] cmb@php.net
[2024-07-31 15:21 UTC] morozov at tut dot by
[2024-07-31 15:34 UTC] cmb@php.net
-Status: Assigned
+Status: Duplicate
[2024-07-31 15:34 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Description: ------------ It looks like the extension doesn't implement any special handling of the PDO::PARAM_BOOL binding type which makes the logic of binding boolean values inconsistent with the rest of the PDO extensions. Test script: --------------- $conn = new PDO('oci:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=XE)))', 'system', 'oracle'); $stmt = $conn->prepare('SELECT ?, ? FROM DUAL'); $stmt->bindValue(1, true, PDO::PARAM_BOOL); $stmt->bindValue(2, false, PDO::PARAM_BOOL); $stmt->execute(); Expected result: ---------------- array(2) { [0] => string(1) "1" [1] => string(1) "0" } Actual result: -------------- array(2) { [0] => string(1) "1" [1] => NULL }