|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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_ PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 14:00:01 2025 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;