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: -
From: christian dot koelbl at stahlgruber dot de Assigned:
Status: Open Package: PDO_IBM (PECL)
PHP Version: Irrelevant OS: Ubuntu 18.04LTS
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 14:01:23 2020 UTC