Bug #77486 [Opn->Fbk]: PHP_INI_SCAN_DIR is recognized but not honored

From: Date: Thu, 07 Oct 2021 13:38:40 +0000
Subject: Bug #77486 [Opn->Fbk]: PHP_INI_SCAN_DIR is recognized but not honored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77486&edit=1

 ID:                 77486
 Updated by:         cmb@php.net
 Reported by:        anrdaemon at freemail dot ru
 Summary:            PHP_INI_SCAN_DIR is recognized but not honored
-Status:             Open
+Status:             Feedback
 Type:               Bug
-Package:            *Configuration Issues
+Package:            PHP options/info functions
 Operating System:   Windows
 PHP Version:        7.3.1
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I cannot reproduce this with PHP-7.4.  If this is still an issue
for you with any of the actively supported PHP versions[1], please
clarify your folder structure, especially wrt. the junction.

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2019-01-18 20:23:09] 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.

------------------------------------------------------------------------
[2019-01-18 20:15:31] 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)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=77486&edit=1


Thread (5 messages)

« previous php.bugs (#237084) next »