|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-11-22 17:00 UTC] christophe dot conduche at bio-c-bon dot fr
[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
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
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