|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-13 11:20 UTC] vnkbabu@php.net
-Status: Open
+Status: Assigned
[2017-07-13 11:20 UTC] vnkbabu@php.net
[2018-08-27 10:01 UTC] vnkbabu@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: vnkbabu
[2018-08-27 10:01 UTC] vnkbabu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ I believe that this is a occurrence of #59322 which describes exactly the issue I am seeing, however, that bug is marked as fixed in the 1.9.0 release of the ibm_db2 module, while I am using 1.9.9 and seeing this error. My test case is shown below. If that function is taken out of the class and run directly it runs without issue. Test script: --------------- class Test { public function run ( $conn ) { $stmt = db2_prepare( $conn, 'SELECT * FROM mytable WHERE id = ?' ); $allanTest = 65; db2_bind_param( $stmt, 1, 'allanTest', DB2_PARAM_IN ); db2_execute( $stmt ); echo db2_stmt_errormsg(); var_dump( $stmt ); while($row = db2_fetch_assoc($stmt)){ print_r( $row ); } } } $t = new Test(); $t->run( $conn ); Expected result: ---------------- The parameters should be bound just like they are if executed outside of a class. Actual result: -------------- This is resulting in the following errors: <br /> <b>Warning</b>: db2_execute(): Value Not Bound in <b>/var/www/html/db2.php</b> on line <b>114</b><br /> <br /> <b>Warning</b>: db2_execute(): Binding Error 3 in <b>/var/www/html/db2.php</b> on line <b>114</b><br /> resource(3) of type (DB2 Statement) <br />