|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-02-19 23:13 UTC]
[2019-05-08 09:55 UTC] vnkbabu@php.net
[2021-07-28 15:27 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-07-28 15:27 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ Documentation suggests to use db2_autocommit() with either DB2_AUTOCOMMIT_OFF or DB2_AUTOCOMMIT_ON constant. However the function expects 2nd argument of type bool while the constants are of type int. This produces a TypeError in declare(strict_types=1) mode. Test script: --------------- <?php declare(strict_types=1); $c = db2_connect('xxx', 'xxx', 'xxx'); db2_autocommit($c, DB2_AUTOCOMMIT_OFF); Expected result: ---------------- No error - DB2_AUTOCOMMIT_OFF/DB2_AUTOCOMMIT_ON should be accepted. Actual result: -------------- TypeError: db2_autocommit() expects parameter 2 to be boolean, integer given