|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78458 extension_dir="./ext" in php.ini is not working
Submitted: 2019-08-26 14:26 UTC Modified: 2019-08-26 14:36 UTC
From: billy78 at gmail dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 7.2.21 OS: Windows 7 SP1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: billy78 at gmail dot com
New email:
PHP Version: OS:


 [2019-08-26 14:26 UTC] billy78 at gmail dot com
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_dir = "ext"

Expected result:
sqlite module is loaded.

Actual result:
sqlite module is not loaded.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-26 14:36 UTC]
-Status: Open +Status: Not a bug
 [2019-08-26 14:36 UTC]
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.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 09:01:27 2023 UTC