|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-04 14:02 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Apr 22 15:00:01 2026 UTC |
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