#42199 [Opn->Bgs]: Dynamic Loading php_ibm_db2

From: Date: Sat, 04 Aug 2007 14:02:59 +0000
Subject: #42199 [Opn->Bgs]: Dynamic Loading php_ibm_db2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115746@lists.php.net to get a copy of this message
ID: 42199 Updated by: jani@php.net Reported By: ngson2000 at yahoo dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: Windows XP Pro PHP Version: 5.2.4RC1 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-08-03 10:53:43] ngson2000 at yahoo dot com Description: ------------ In command line, it works. I can load and use functions provided by PECL package php_ibm_db2 However, when I call my php script via Web server Apache 2 it does not work Error in php log file: [03-Aug-2007 22:46:50] PHP Warning: PHP Startup: Unable to load dynamic library 'E:/wamp/php/ext/php_ibm_db2.dll' - The specified module could not be found. in Unknown on line 0 I'm using WAMP5 1.7.2 Reproduce code: --------------- try{ $db2_source = &$DATA_SOURCES['db2']; if ($db2_source['db'] = db2_connect($db2_source['conn'], '', '')) { echo "Successfully connected to the db2 database\n"; db2_close($db2_source['db']); } else { throw new Exception("Can not connect to the db2 database"); } } catch (Exception $e){ $e->getMessage(); } Expected result: ---------------- Successfully connected to the db2 database Actual result: -------------- Fatal error: Call to undefined function db2_connect() in E:\wamp\www\DBConnector\test.php on line 38 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42199&edit=1

« previous php.bugs (#115746) next »