Bug #79611 [NEW]: PDO ODBC- Informix segfaults when fetching data using bound parameters
| From: | tom at advancedatatools dot com | Date: | Mon, 18 May 2020 17:47:55 +0000 |
| Subject: | Bug #79611 [NEW]: PDO ODBC- Informix segfaults when fetching data using bound parameters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227076@lists.php.net to get a copy of this message | ||
From: tom at advancedatatools dot com
Operating system: CentOS
PHP version: 7.2.31
Package: PDO ODBC
Bug Type: Bug
Bug description:PDO ODBC- Informix segfaults when fetching data using bound parameters
Description:
------------
When doing a simple query using bound parameters php segfaults on the
fetch line.
This happens for all tested data types, using named vs numbered bound
parameters, and on every version of php tested (5.6, 7.2, 7.3).
This happens regardless of what it is fetching.
This is using Informix as the back end engine.
Test script:
---------------
$sth = $dbh->prepare("select item_num from items where item_num = ?");
$sth->bindParam(1,2);
#Works
$sth->execute();
#Segfaults for any type of fetch
$row = $sth->fetch(PDO::FETCH_NUM);
Expected result:
----------------
$row should return the record
Actual result:
--------------
Segmentation fault (core dumped)
--
Edit bug report at https://bugs.php.net/bug.php?id=79611&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79611&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79611&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79611&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79611&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79611&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79611&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79611&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79611&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79611&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79611&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79611&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79611&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79611&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79611&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79611&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79611&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79611&r=mysqlcfg