|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22702 PEAR DB missing php_ in load extension
Submitted: 2003-03-14 08:54 UTC Modified: 2003-04-03 01:18 UTC
From: kristof dot nast-kolb at foroso dot de Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.1 OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 4 = ?
Subscribe to this entry?

 [2003-03-14 08:54 UTC] 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_


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 07:59 UTC]
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-04-02 10:57 UTC]
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-04-03 00:01 UTC] kristof dot nast-kolb at foroso dot de
Yes, that solves the problem. thanks.
 [2003-04-03 00:26 UTC]
this is not fixed in CVS yet - Martin do you want do to the honors..
 [2003-04-03 01:18 UTC]
Fixed in CVS.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 17 20:03:35 2022 UTC