php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77065 PDO_INFORMIX gives a illegal ISAM Code when ISAM is 0
Submitted: 2018-10-26 07:56 UTC Modified: 2018-10-26 09:38 UTC
From: as at nsi dot de Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 7.0.32 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: as at nsi dot de
New email:
PHP Version: OS:

 

 [2018-10-26 07:56 UTC] as at nsi dot de
Description:
------------
PDO_INFORMIX Version 1.3.3 File: informix_driver.c  Line 441

sprintf(suppliment, "%s (%s[%d] at %s:%d) ISAM: %d",

must be:

sprintf(suppliment, "%s (%s[%d] at %s:%d)",

Here is the case the ISAM-Error code is 0 and the param conn_res->error_data.isam_err is removed from the param list.
In the format string the placeholder must also removed!

Test script:
---------------
Its a simple error - Pleas look into the source code. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-26 09:38 UTC] cmb@php.net
-Package: PDO related +Package: PDO_INFORMIX
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC