php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45298 php insists in loading dlls from c:\php5
Submitted: 2008-06-18 10:14 UTC Modified: 2008-06-18 10:57 UTC
From: mariusads at helpedia dot com Assigned: pajoye (profile)
Status: Not a bug Package: Dynamic loading
PHP Version: 5.2.6 OS: windows 2003 web edition
Private report: No CVE-ID: None
 [2008-06-18 10:14 UTC] mariusads at helpedia dot com
Description:
------------
php 5.2.6.6

No matter what directories I set in the php.ini, php insists on loading the extension dll files from c:\php5



Reproduce code:
---------------
in php.ini the following are set:

include_path = ".;d:\php5"
doc_root =
user_dir =
extension_dir = "."

PHP is installed in D:\php5
I've copied all the dlls from the ext folder to d:\php5

When  apache loads the following lines appear in error.log:

PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_bz2.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_curl.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_gd2.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_mbstring.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_mcrypt.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_mhash.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_mysql.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '.\php_zip.dll' - The specified module could not be found.

Expected result:
----------------
DLLs should be loaded from d:\php5 without problems

Actual result:
--------------
Libraries are not loaded

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-18 10:17 UTC] mariusads at helpedia dot com
Additional note:

if extension_dir = "" as in my last attempt, in apache these lines appear:

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_bz2.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_curl.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_gd2.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_mbstring.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_mcrypt.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_mhash.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_mysql.dll' - The specified module could not be found.

 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_zip.dll' - The specified module could not be found.

 in Unknown on line 0
 [2008-06-18 10:22 UTC] pajoye@php.net
> extension_dir = "."

Set it to the actual full path (c:\php5\ext for example)
 [2008-06-18 10:57 UTC] mariusads at helpedia dot com
I've set it to d:\php5\ext and is still tries loading from c:\php5

I'm not stupid. Checked several times with various paths and i finally gave up and created a php5 folder in C:\ and copied there the files d:\php5\ext
 [2010-03-06 18:14 UTC] ioan dot podaru at gmail dot com
Try with your initial path and uncomment the following line in php.ini: extension_dir = "ext""
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 16:01:30 2024 UTC