php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42199 Dynamic Loading php_ibm_db2
Submitted: 2007-08-03 10:53 UTC Modified: 2007-08-04 14:02 UTC
From: ngson2000 at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.4RC1 OS: Windows XP Pro
Private report: No CVE-ID: None
 [2007-08-03 10:53 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-04 14:02 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 05:01:29 2024 UTC