php.net |  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
 [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_

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 07:59 UTC] 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-04-02 10:57 UTC] 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-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] alan_k@php.net
this is not fixed in CVS yet - Martin do you want do to the honors..
 [2003-04-03 01:18 UTC] mj@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 01:03:40 2021 UTC