Bug #74866 [NEW]: extension_dir = "./ext" now use current directory for base

From: Date: Thu, 06 Jul 2017 12:27:14 +0000
Subject: Bug #74866 [NEW]: extension_dir = "./ext" now use current directory for base
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209849@lists.php.net to get a copy of this message
From:             sailormax at inbox dot lv
Operating system: Windows 10
PHP version:      7.2.0alpha3
Package:          Dynamic loading
Bug Type:         Bug
Bug description:extension_dir = "./ext" now use current directory for base

Description:
------------
Early builds works with "./" in extension_dir setting as with
directory of php.exe

Start from 7.2alpha3 "./" in extension_dir setting PHP start to
understand as current directory.
In result if start php.exe from any other directory, it try to load
extensions from current directory.

Test script:
---------------
php.ini:

extension_dir = ".\ext"
extension=php_bz2.dll

exec php from parent directory:
> php\php.exe --version

Expected result:
----------------
PHP 7.2.0alpha3 (cli) ...

Actual result:
--------------
Warning: Cannot access dynamic library 'php_bz2.dll' (tried :
ext\php_bz2.dll, ext\php_php_bz2.dll.dll) in Unknown on line 0

PHP 7.2.0alpha3 (cli) ...

-- 
Edit bug report at https://bugs.php.net/bug.php?id=74866&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74866&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74866&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74866&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74866&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74866&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74866&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74866&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74866&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74866&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74866&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74866&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74866&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74866&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74866&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74866&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74866&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74866&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74866&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74866&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74866&r=mysqlcfg



Thread (14 messages)

« previous php.bugs (#209849) next »