ID:               33533
 Updated by:       [EMAIL PROTECTED]
 Reported By:      scott dot barnett at thuringowa dot qld dot gov dot au
-Status:           Open
+Status:           Feedback
 Bug Type:         ODBC related
 Operating System: CentOS 4.1 / Redhat Enterprise 4
 PHP Version:      5.0.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And try with the new PDO (pdo_odbc) extension.
See manual: http://www.php.net/pdo



Previous Comments:
------------------------------------------------------------------------

[2005-07-01 08:37:43] scott dot barnett at thuringowa dot qld dot gov
dot au

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 this bug report at http://bugs.php.net/?id=33533&edit=1

Reply via email to