#22702 [Opn->Fbk]: PEAR DB missing php_ in load extension
| From: | mj@php.net | Date: | Thu, 27 Mar 2003 13:59:10 +0000 |
| Subject: | #22702 [Opn->Fbk]: PEAR DB missing php_ in load extension | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14675@lists.php.net to get a copy of this message | ||
ID: 22702
Updated by: mj@php.net
Reported By: kristof dot nast-kolb at foroso dot de
-Status: Open
+Status: Feedback
Bug Type: PEAR related
Operating System: windows 2000
PHP Version: 4.3.1
New Comment:
Could you please try if the following patch works for you?
Index: DB.php
===================================================================
RCS file: /repository/pear/DB/DB.php,v
retrieving revision 1.17
diff -u -r1.17 DB.php
--- DB.php 18 Feb 2003 13:26:09 -0000 1.17
+++ DB.php 27 Mar 2003 13:58:38 -0000
@@ -569,7 +569,8 @@
{
if (!extension_loaded($name)) {
$dlext = OS_WINDOWS ? '.dll' : '.so';
- @dl($name . $dlext);
+ $dlprefix = OS_WINDOWS ? 'php_' : '';
+ @dl($dlprefix . $name . $dlext);
return extension_loaded($name);
}
return true;
Previous Comments:
------------------------------------------------------------------------
[2003-03-14 08:54:21] kristof dot nast-kolb at foroso dot de
DB tries to load the database extension if it isn't loaded yet. But the
"php_" prefix for the dll name isn't set when calling @dl() onWindows
systems.
all extensions dlls on Windows start with php_
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22702&edit=1