Bug #70142 [NEW]: Default extension directory is absolute instead of relative
| From: | mgcummings at yahoo dot com | Date: | Sun, 26 Jul 2015 23:50:38 +0000 |
| Subject: | Bug #70142 [NEW]: Default extension directory is absolute instead of relative | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-194728@lists.php.net to get a copy of this message | ||
From: mgcummings at yahoo dot com
Operating system: Windows 7
PHP version: 7.0.0beta2
Package: Dynamic loading
Bug Type: Bug
Bug description:Default extension directory is absolute instead of relative
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 bug report at https://bugs.php.net/bug.php?id=70142&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70142&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70142&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70142&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70142&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70142&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70142&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70142&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70142&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70142&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70142&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70142&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70142&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70142&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70142&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70142&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70142&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70142&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70142&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70142&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70142&r=mysqlcfg