|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-11-13 10:40 UTC] kfbombar at us dot ibm dot com
  [2007-03-01 10:10 UTC] tba at goyellow dot de
  [2007-03-01 10:27 UTC] kfbombar at us dot ibm dot com
  [2007-03-05 12:25 UTC] tba at goyellow dot de
  [2007-03-05 12:37 UTC] kfbombar at us dot ibm dot com
  [2007-03-06 04:05 UTC] tba at goyellow dot de
  [2007-03-06 11:03 UTC] kfbombar at us dot ibm dot com
  [2007-03-09 05:29 UTC] tba at goyellow dot de
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 22:00:01 2025 UTC | 
Description: ------------ After compiling ibm_db2 as follows: php5 /usr/share/php5/PEAR/peclcmd.php install ~/ibm_db2-1.5.1.tgz (pecl not available on OpenSuse) and included the extension into the php.ini a test script runs into a Segmentation fault. php5 db2_con.php -> see Actual result Reproduce code: --------------- $conn = db2_connect($database, $user, $password); if ($conn) { echo "Connection succeeded.\n"; $client = db2_client_info( $conn ); if ($client) { echo "DRIVER_NAME: "; var_dump( $client->DRIVER_NAME ); echo "DRIVER_VER: "; var_dump( $client->DRIVER_VER ); echo "DATA_SOURCE_NAME: "; var_dump( $client->DATA_SOURCE_NAME ); echo "DRIVER_ODBC_VER: "; var_dump( $client->DRIVER_ODBC_VER ); echo "ODBC_VER: "; var_dump( $client->ODBC_VER ); echo "ODBC_SQL_CONFORMANCE: "; var_dump( $client->ODBC_SQL_CONFORMANCE ); echo "APPL_CODEPAGE: "; var_dump( $client->APPL_CODEPAGE ); echo "CONN_CODEPAGE: "; var_dump( $client->CONN_CODEPAGE ); } db2_close($conn); Expected result: ---------------- Connection succeeded ... Actual result: -------------- gdb php5 GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run db2_con.php Starting program: /usr/bin/php5 db2_con.php (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1213282640 (LWP 8507)] Connection succeeded. DRIVER_NAME: string(8) "libdb2.a" DRIVER_VER: string(10) "08.02.0003" DATA_SOURCE_NAME: string(6) "SESYS2" DRIVER_ODBC_VER: string(5) "03.51" ODBC_VER: string(10) "03.01.0000" ODBC_SQL_CONFORMANCE: string(8) "EXTENDED" APPL_CODEPAGE: int(819) CONN_CODEPAGE: int(819) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1213282640 (LWP 8507)] 0xb6b2add0 in ?? () (gdb) bt #0 0xb6b2add0 in ?? () #1 0x08350100 in ?? () #2 0x00000000 in ?? () (gdb) q The program is running. Exit anyway? (y or n) y