Bug #70142 [Opn->Ver]: Default extension directory is absolute instead of relative

From: Date: Mon, 27 Jul 2015 17:23:29 +0000
Subject: Bug #70142 [Opn->Ver]: Default extension directory is absolute instead of relative
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194767@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70142&edit=1 ID: 70142 Updated by: cmb@php.net Reported by: mgcummings at yahoo dot com Summary: Default extension directory is absolute instead of relative -Status: Open +Status: Verified Type: Bug Package: Dynamic loading Operating System: Windows 7 PHP Version: 7.0.0beta2 Block user comment: N Private report: N New Comment: This is not a regression bug. extension_dir has always defaulted to an absolute path on Windows[1]. It occurs to me that it would make sense to change that, though, at least for the distributed binaries. [1] <https://github.com/php/php-src/blob/php-5.6.11/win32/build/config.w32.h.in#L18> Previous Comments: ------------------------------------------------------------------------ [2015-07-26 23:50:38] mgcummings at yahoo dot com Description: ------------ Install PHP 7 anywhere without setting extension_dir option in php.ini and using extension=example.dll and php reports it can't find extension in c:/php/example.dll. Per the comments in the included example php.ini files and the default with past versions the built-in default should be a relative path of "./ext/" on Windows which match the actually location in the build. It is also clear that an absolute path is being used for the default as well since the actual path to my install is d:/php7.0/beta2/ meaning it should be looking in d:/php7.0/beta2/ext/ for the DLLs. Test script: --------------- echo %PATH% php.exe --version Expected result: ---------------- Not report missing extension DLLs. Actual result: -------------- D:\php-7.0\beta2;C:\Windows\system32;C:\Windows PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_bz2.dll' - The specified module could not be found. in Unknown on line 0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70142&edit=1

« previous php.bugs (#194767) next »