php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77486 PHP_INI_SCAN_DIR is recognized but not honored
Submitted: 2019-01-18 20:15 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: anrdaemon at freemail dot ru Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 7.3.1 OS: Windows
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: anrdaemon at freemail dot ru
New email:
PHP Version: OS:

 

 [2019-01-18 20:15 UTC] anrdaemon at freemail dot ru
Description:
------------
PHP 7.3/Win64ts does not parse .ini files from PHP_INI_SCAN_DIR's.

Test script:
---------------
@ECHO OFF
MKDIR "%~dp0conf1" > NUL: 2>&1
MKDIR "%~dp0conf2" > NUL: 2>&1
ECHO variables_order=GPCS > "%~dp0conf1\1.ini"
ECHO extension_dir=ext > "%~dp0conf2\2.ini"

SET "PHP_INI_SCAN_DIR=%~dp0conf1;%~dp0conf2"
"%~dp0php.exe" --ini


Expected result:
----------------
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\php\php-cli.ini
Scan for additional .ini files in: C:\php\conf1;C:\php\conf2
Additional .ini files parsed:      C:\php\conf1\1.ini,
C:\php\conf2\2.ini

Actual result:
--------------
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\php\php-cli.ini
Scan for additional .ini files in: C:\php\conf1;C:\php\conf2
Additional .ini files parsed:      (none)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-18 20:23 UTC] anrdaemon at freemail dot ru
And the problem is apparently an unnecessary path expansion somewhere.
If I remove junctions from all paths leading to PHP directory, the testcase works with both 7.2 and 7.3.
If I restore the setup, 7.3 fails.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Feb 23 01:01:26 2019 UTC