php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80238 BIND PDO_PARAM_INT
Submitted: 2020-10-15 09:11 UTC Modified: 2021-10-24 04:22 UTC
From: christian dot koelbl at stahlgruber dot de Assigned: cmb (profile)
Status: No Feedback Package: PDO_IBM (PECL)
PHP Version: Irrelevant OS: Ubuntu 18.04LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
38 + 9 = ?
Subscribe to this entry?

 
 [2020-10-15 09:11 UTC] christian dot koelbl at stahlgruber dot de
Description:
------------
Binding PDO_PARAM_INT params dont work with PHP>=7. A wrong dataspace-adress of the php parameter is bound.
I have changed ibm_statement.c (see attachment). You can make a diff with version 1.3.6.

The Version 1.3.6 is not on http://git.php.net/?p=pecl/database/pdo_ibm.git




Patches

integerToDatabaseWithoutLineComments (last revision 2020-10-16 07:50 UTC by thomas dot baumgartl at stahlgruber dot de)
integerToDatabase (last revision 2020-10-16 06:55 UTC by thomas dot baumgartl at stahlgruber dot de)
NotApatch (last revision 2020-10-15 09:12 UTC by christian dot koelbl at stahlgruber dot de)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-15 09:12 UTC] christian dot koelbl at stahlgruber dot de
The following patch has been added/updated:

Patch Name: NotApatch
Revision:   1602753141
URL:        https://bugs.php.net/patch-display.php?bug=80238&patch=NotApatch&revision=1602753141
 [2020-10-15 14:16 UTC] danack@php.net
Please can you generate a diff yourself. This can be done with a command like `git diff --combined ibm_statement.c` Also, your line comments showing where the changes are made are not needed.

I tried to generate a diff, but I was seeing what looked like inappropriate deletion of a chunk of code on line 1033-ish,
 [2020-10-16 06:55 UTC] thomas dot baumgartl at stahlgruber dot de
The following patch has been added/updated:

Patch Name: integerToDatabase
Revision:   1602831315
URL:        https://bugs.php.net/patch-display.php?bug=80238&patch=integerToDatabase&revision=1602831315
 [2020-10-16 07:04 UTC] thomas dot baumgartl at stahlgruber dot de
hi,
I have attached the diff "integerToDatabase" from my colleagues work
"curr->parameter" is replaced by "parameter" at some PHP7 cases.
 [2020-10-16 07:50 UTC] thomas dot baumgartl at stahlgruber dot de
The following patch has been added/updated:

Patch Name: integerToDatabaseWithoutLineComments
Revision:   1602834606
URL:        https://bugs.php.net/patch-display.php?bug=80238&patch=integerToDatabaseWithoutLineComments&revision=1602834606
 [2021-10-11 15:17 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-10-11 15:17 UTC] cmb@php.net
It seems to me that this has been fixed in the meantime, or is
there still an issue with latest PDO_IBM (1.4.2)?
 [2021-10-24 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 08 22:03:33 2022 UTC