#22702 [Csd->Ver]: PEAR DB missing php_ in load extension
| From: | alan_k@php.net | Date: | Thu, 03 Apr 2003 06:26:27 +0000 |
| Subject: | #22702 [Csd->Ver]: PEAR DB missing php_ in load extension | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14827@lists.php.net to get a copy of this message | ||
ID: 22702
Updated by: alan_k@php.net
Reported By: kristof dot nast-kolb at foroso dot de
-Status: Closed
+Status: Verified
Bug Type: PEAR related
Operating System: windows 2000
PHP Version: 4.3.1
New Comment:
this is not fixed in CVS yet - Martin do you want do to the honors..
Previous Comments:
------------------------------------------------------------------------
[2003-04-03 00:01:32] kristof dot nast-kolb at foroso dot de
Yes, that solves the problem. thanks.
------------------------------------------------------------------------
[2003-04-02 10:57:36] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-03-27 07:59:10] mj@php.net
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;
------------------------------------------------------------------------
[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