From: scott dot barnett at thuringowa dot qld dot gov dot au
Operating system: CentOS 4.1 / Redhat Enterprise 4
PHP version: 5.0.4
PHP Bug Type: ODBC related
Bug description: Segmentation Fault with selecting informix text column
Description:
------------
Apache 2.0.54
PHP 5.0.4
UnixODBC 2.2.11
Informix SDK 2.90.UC1
I'm trying to use ODBC to query an informix server. I can select char or
int columns, and I can perform inserts on text fields fine. When I do a
select on a text column the query executes fine. When I try and use any
fetch function (eg. odbc_fetch_into, odbc_fetch_object) on the result, it
seg faults.
Using isql at the shell on the web server works perfectly.
Reproduce code:
---------------
$sql="select * from tablename";
$result = odbc_prepare ($conn_id, $sql);
$result=odbc_exec($db,$sql);
while(odbc_fetch_into($result, $myarray)){
for($i=0; $i<3; $i++){
print "$myarray[$i] ";
}
}
Expected result:
----------------
The contents of the table to appear! :)
Actual result:
--------------
[notice] child pid 4220 exit signal Segmentation fault (11)
--
Edit bug report at http://bugs.php.net/?id=33533&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33533&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33533&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33533&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33533&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33533&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33533&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33533&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33533&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33533&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33533&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33533&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33533&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33533&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33533&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33533&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33533&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33533&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33533&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33533&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33533&r=mysqlcfg