php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75997 phpinfo() reports wrong extension_dir path
Submitted: 2018-02-22 16:41 UTC Modified: 2018-05-05 21:58 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: chokolatrix at gmail dot com Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 7.2.2 OS: Windows Server 2012 R2 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chokolatrix at gmail dot com
New email:
PHP Version: OS:

 

 [2018-02-22 16:41 UTC] chokolatrix at gmail dot com
Description:
------------
phpinfo() wrongly reports "extension_dir" Local Value as "C:\php\ext" instead of the real path.

-- php.ini --

extension_dir = "ext"

-- /php.ini --


It seems to only be a display error because the extentions are actually loaded from the real path.

Php.ini is loaded correctly, as reported by "Loaded Configuration File" : 
C:\php-7.2.2-nts-Win32-VC15-x64\php.ini

Test script:
---------------
<?php
phpinfo();

Expected result:
----------------
"extension_dir" Local Value "C:\php-7.2.2-nts-Win32-VC15-x64\ext"

Actual result:
--------------
"extension_dir" Local Value "C:\php\ext"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-23 15:01 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2018-02-23 15:01 UTC] ab@php.net
Looks like an environment issue. It doesn't matter, where the loaded ini file is, but the actual directive there. Some might be also affected by registry and other factors, please see the manual.

Thanks.
 [2018-05-05 21:58 UTC] requinix@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC