#42199 [NEW]: Dynamic Loading php_ibm_db2
| From: | ngson2000 at yahoo dot com | Date: | Fri, 03 Aug 2007 10:53:43 +0000 |
| Subject: | #42199 [NEW]: Dynamic Loading php_ibm_db2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-115716@lists.php.net to get a copy of this message | ||
From: ngson2000 at yahoo dot com
Operating system: Windows XP Pro
PHP version: 5.2.4RC1
PHP Bug Type: Apache2 related
Bug description: Dynamic Loading php_ibm_db2
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 bug report at http://bugs.php.net/?id=42199&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42199&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42199&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42199&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42199&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42199&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42199&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42199&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42199&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42199&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42199&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42199&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42199&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42199&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42199&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42199&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42199&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42199&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42199&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42199&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42199&r=mysqlcfg