php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65710 odbc_result or odbc_fetch_array cause php error memory
Submitted: 2013-09-19 12:58 UTC Modified: 2013-11-22 17:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: christophe dot conduche at bio-c-bon dot fr Assigned:
Status: Closed Package: ODBC related
PHP Version: 5.5.3 OS: Fedora 19 ppc64p7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: christophe dot conduche at bio-c-bon dot fr
New email:
PHP Version: OS:

 

 [2013-09-19 12:58 UTC] christophe dot conduche at bio-c-bon dot fr
Description:
------------
ODBC connexion to a DB2 database makes php out of memory on fedora 19 ppc64p7 arch.

Same script on a debian 64 bit box works ok.

SQLi gives correct results on the 2 test systems.

Test script:
---------------
<?php

echo "TEST CONNEXION DB2 - ODBC <HR>";

$dsn    = "power7";
$user   = "xxx";
$passwd = "yyy";
$conn   = odbc_connect($dsn,$user,$passwd );

if (!$conn)
  {exit("Connection Failed: " . $conn);}
$sql="SELECT 1 FROM SYSIBM.SYSDUMMY1";
$rs=odbc_exec($conn,$sql);
if (!$rs)
  {exit("Error in SQL");}
$myarray = odbc_fetch_array($rs);
odbc_close($conn);
var_dump ($myarray);

echo "<HR>Fin de test";

?>


Expected result:
----------------
TEST CONNEXION DB2 - ODBC

array(1) { ["00001"]=> string(1) "1" } 

Fin de test

Actual result:
--------------
TEST CONNEXION DB2 - ODBC 

array(1) { ["00001"]=> string(365) "1���jx���jxlz��a���j����j�lz`" } 

Fin de test

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-22 17:00 UTC] christophe dot conduche at bio-c-bon dot fr
This problem was on the ODBC driver from IBM.

The release today of ibm-iaccess-1.1.0.1-1.0.ppc64.rpm fix this issue !!

Just be aware to force the installation with rpm -Uvh --nodeps to avoid the problem of version with unixodbc and to do the symlink from libodbcinst.so.1 to libodbcinst.so.2 (but if you had already a buggy installation like me and waiting for this release, this link has already be done by you on your system ;-) )
 [2013-11-22 17:01 UTC] christophe dot conduche at bio-c-bon dot fr
-Status: Open +Status: Closed
 [2013-11-22 17:01 UTC] christophe dot conduche at bio-c-bon dot fr
Bug closed so.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 02 09:01:27 2025 UTC