#37018 [Opn->Bgs]: IBM DB2 problem

From: Date: Sat, 08 Apr 2006 13:22:17 +0000
Subject: #37018 [Opn->Bgs]: IBM DB2 problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95468@lists.php.net to get a copy of this message
ID: 37018 Updated by: tony2001@php.net Reported By: ahmet at cemre dot net -Status: Open +Status: Bogus Bug Type: *Database Functions Operating System: Fedora Core release 3 PHP Version: 5.1.2 New Comment: ibm_db2 is PECL extension and its ./configure option looks like --with-IBM_DB2, not --with-ibm-db2. Previous Comments: ------------------------------------------------------------------------ [2006-04-08 13:12:41] ahmet at cemre dot net Description: ------------ Hello, I'm compiling php 5.1.2 with db2 support but when i try to use db2_* functions, it says "undefined function" Configure command : ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-gd --enable-gd --with-zlib --with-freetype --enable-gd-native-ttf --with-ttf --with-jpeg-dir --with-unixODBC=/usr --with-mssql=/usr/local/freetds --with-openssl --with-ibm-db2=/opt/IBM/db2/V8.1/ [root@www httpdocs]# ldd /usr/local/bin/php | grep IBM libdb2.so.1 => /opt/IBM/db2/V8.1//lib/libdb2.so.1 (0xb6fd1000) libdb2install.so.1 => /opt/IBM/db2/V8.1/lib/libdb2install.so.1 (0xb6fca000) libdb2g11n.so.1 => /opt/IBM/db2/V8.1/lib/libdb2g11n.so.1 (0xb6f45000) libdb2locale.so.1 => /opt/IBM/db2/V8.1/lib/libdb2locale.so.1 (0xb6f2d000) libdb2osse.so.1 => /opt/IBM/db2/V8.1/lib/libdb2osse.so.1 (0xb6d12000) libdb2genreg.so.1 => /opt/IBM/db2/V8.1/lib/libdb2genreg.so.1 (0xb6cca000) libdb2trcapi.so.1 => /opt/IBM/db2/V8.1/lib/libdb2trcapi.so.1 (0xb6cbd000) libdb2dascmn.so.1 => /opt/IBM/db2/V8.1/lib/libdb2dascmn.so.1 (0xb6c9c000) libcxa.so.3 => /opt/IBM/db2/V8.1/lib/libcxa.so.3 (0xb6c69000) libdb2osse_db2.so.1 => /opt/IBM/db2/V8.1/lib/libdb2osse_db2.so.1 (0xb6c54000) [root@www httpdocs]# /usr/local/bin/php -v PHP 5.1.2 (cli) (built: Apr 8 2006 16:14:22) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies [root@www httpdocs]# Reproduce code: --------------- $database = 'ASYAWEB'; $user = 'db2inst1'; $password = 'xxx'; $conn = db2_connect($database, $user, $password); if ($conn) { echo "Connection succeeded."; db2_close($conn); } else { echo "Connection failed."; } Expected result: ---------------- Connection succeeded Actual result: -------------- Fatal error: Call to undefined function db2_connect() in /var/www/html/turkyayin.com/httpdocs/deneme.php on line 7 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37018&edit=1

« previous php.bugs (#95468) next »