Bug #79611 [Opn]: PDO ODBC- Informix segfaults when fetching data using bound parameters

From: Date: Mon, 18 May 2020 17:50:17 +0000
Subject: Bug #79611 [Opn]: PDO ODBC- Informix segfaults when fetching data using bound parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227077@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79611&edit=1 ID: 79611 User updated by: tom at advancedatatools dot com Reported by: tom at advancedatatools dot com Summary: PDO ODBC- Informix segfaults when fetching data using bound parameters Status: Open Type: Bug Package: PDO ODBC Operating System: CentOS PHP Version: 7.2.31 Block user comment: N Private report: N New Comment: Correction on test sql: $sth = $dbh->prepare("select item_num from items where item_num = ?"); $vars = array(2); #Works $sth->execute($vars); #Segfaults for any type of fetch $row = $sth->fetch(PDO::FETCH_NUM); Previous Comments: ------------------------------------------------------------------------ [2020-05-18 17:47:54] tom at advancedatatools dot com 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 this bug report at https://bugs.php.net/bug.php?id=79611&edit=1

« previous php.bugs (#227077) next »