Bug #78458 [Opn->Nab]: extension_dir="./ext" in php.ini is not working
| From: | requinix@php.net | Date: | Mon, 26 Aug 2019 14:36:34 +0000 |
| Subject: | Bug #78458 [Opn->Nab]: extension_dir="./ext" in php.ini is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222420@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78458&edit=1
ID: 78458
Updated by: requinix@php.net
Reported by: billy78 at gmail dot com
Summary: extension_dir="./ext" in php.ini is not working
-Status: Open
+Status: Not a bug
Type: Bug
Package: Dynamic loading
Operating System: Windows 7 SP1
PHP Version: 7.2.21
Block user comment: N
Private report: N
New Comment:
extension_dir is relative to where PHP is executing from. When running as an Apache module, that
might be the Apache directory. Or it might not be.
Use an absolute path.
Previous Comments:
------------------------------------------------------------------------
[2019-08-26 14:26:59] billy78 at gmail dot com
Description:
------------
I have PHP v7.2.21 installed as Apache module (php7apache2_4.dll). Apache is installed in
C:\Apache24 and PHP is installed in C:\Apache24\php. I use Windows 7 SP1.
I cannot use current directory or relative directory in php.ini for extension_dir
This also occurs with v7.1.31 and v7.3.8
If I use an absolute path, it works.
Test script:
---------------
extension_dir = "./ext"
extension=pdo_sqlite
extension=sqlite3
or
extension_dir = "ext"
extension=pdo_sqlite
extension=sqlite3
Expected result:
----------------
sqlite module is loaded.
Actual result:
--------------
sqlite module is not loaded.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78458&edit=1