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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: christian dot koelbl at stahlgruber dot de
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC