Bug #75159 [Com]: 7.2 does not parse additional .ini files
| From: | anrdaemon at freemail dot ru | Date: | Fri, 29 Sep 2017 06:09:17 +0000 |
| Subject: | Bug #75159 [Com]: 7.2 does not parse additional .ini files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211442@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75159&edit=1
ID: 75159
Comment by: anrdaemon at freemail dot ru
Reported by: anrdaemon at freemail dot ru
Summary: 7.2 does not parse additional .ini files
Status: Feedback
Type: Bug
Package: *Configuration Issues
Operating System: Windows
PHP Version: 7.2.0RC1
Block user comment: N
Private report: N
New Comment:
RC3 - same issue.
Previous Comments:
------------------------------------------------------------------------
[2017-09-19 14:25:05] anrdaemon at freemail dot ru
I've tested RC2 in a Win7 VM with minimal environment changes.
Same behavior. The directory to scan is recognized, but not ini files are read according to php
--ini.
SET PHP_INI_SCAN_DIR=C:\php\conf.d
"C:\php\php.exe" --version
PHP 7.2.0RC2 (cli) (built: Sep 14 2017 00:12:44) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies
"C:\php\php.exe" --ini
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\php\php-cli.ini
Scan for additional .ini files in: C:\php\conf.d
Additional .ini files parsed: (none)
dir "C:\php\conf.d"
Volume in drive C is unlabeled Serial number is 3411:6507
Directory of C:\php\conf.d\*
19.09.2017 2:49 <DIR> .
19.09.2017 2:49 <DIR> ..
10.02.2016 3:45 110 .readme
14.08.2017 17:14 588 00-core.ini
25.12.2016 1:21 43 00-date.ini
12.05.2017 21:54 1 893 00-extensions.ini
25.12.2016 1:24 514 00-mail.ini
25.12.2016 1:19 182 10-mbstring.ini
20.03.2017 18:35 158 10-session.ini
25.12.2016 1:15 32 bz2.ini
09.12.2016 2:25 40 crypto.ini
25.12.2016 1:16 34 curl.ini
25.12.2016 3:04 34 exif.ini
25.12.2016 3:11 40 fileinfo.ini
25.12.2016 3:10 32 ftp.ini
25.12.2016 1:32 63 gd2.ini
11.12.2016 22:11 40 gettext.ini
25.12.2016 1:16 32 gmp.ini
25.12.2016 1:19 113 iconv.ini
25.12.2016 1:16 34 imap.ini
09.12.2016 2:54 62 intl.ini
10.02.2016 4:00 55 ldap.ini
11.08.2017 12:24 3 014 mysql.ini
25.12.2016 1:17 40 openssl.ini
27.02.2016 20:42 33 phar.ini
25.12.2016 3:33 36 shmop.ini
25.12.2016 1:17 40 sockets.ini
24.12.2016 11:52 42 sqlite.ini
09.12.2016 2:53 419 tidy.ini
21.06.2017 13:11 738 xdebug.ini
20.03.2017 18:23 32 xsl.ini
8 493 bytes in 29 files and 2 dirs 118 784 bytes allocated
904 630 272 bytes free
------------------------------------------------------------------------
[2017-09-14 09:39:56] anrdaemon at freemail dot ru
Wish I know what was that. I tried some variations, including supplying only one path in the env
var, but to no avail.
Is there anything I can do to trace this down further?
------------------------------------------------------------------------
[2017-09-13 09:45:36] ab@php.net
Thanks for the report. Though, i don't reproduce the behavior. Setting PHP_INI_SCAN_DIR seems
to work. The only case where the additional ini is not read in is when -n is passed, but that's
expected. There must be likely yet another factor to reproduce.
Thanks.
------------------------------------------------------------------------
[2017-09-05 15:52:43] anrdaemon at freemail dot ru
Description:
------------
I've duplicated an exsisting 7.1.9 setup to check the 7.2RC1 binaries, and much to my surprise
discovered that it does not pick the configuration.
Reading through php --ini, it sees the PHP_INI_SCAN_DIR and correctly displays the paths to scan for
additional configuration files, but does not load even a single one.
Test script:
---------------
php --ini
dir C:\usr\sbin\php-7.2-extra\conf.d C:\usr\sbin\php-7.2.0RC1\conf.d
Expected result:
----------------
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\usr\sbin\php-7.2.0RC1\php-cli.ini
Scan for additional .ini files in: C:\usr\sbin\php-7.2-extra\conf.d;C:\usr\sbin\php-7.2.0RC1\conf.d
Additional .ini files parsed: C:\usr\sbin\php-7.2-extra\conf.d\00-core.ini,
C:\usr\sbin\php-7.2-extra\conf.d\00-date.ini,
C:\usr\sbin\php-7.2-extra\conf.d\00-extensions.ini,
C:\usr\sbin\php-7.2-extra\conf.d\00-mail.ini,
C:\usr\sbin\php-7.2-extra\conf.d\10-mbstring.ini,
C:\usr\sbin\php-7.2-extra\conf.d\10-session.ini,
C:\usr\sbin\php-7.2-extra\conf.d\bz2.ini,
C:\usr\sbin\php-7.2-extra\conf.d\crypto.ini,
C:\usr\sbin\php-7.2-extra\conf.d\curl.ini,
C:\usr\sbin\php-7.2-extra\conf.d\exif.ini,
C:\usr\sbin\php-7.2-extra\conf.d\fileinfo.ini,
C:\usr\sbin\php-7.2-extra\conf.d\ftp.ini,
C:\usr\sbin\php-7.2-extra\conf.d\gd2.ini,
C:\usr\sbin\php-7.2-extra\conf.d\gettext.ini,
C:\usr\sbin\php-7.2-extra\conf.d\gmp.ini,
C:\usr\sbin\php-7.2-extra\conf.d\iconv.ini,
C:\usr\sbin\php-7.2-extra\conf.d\imap.ini,
C:\usr\sbin\php-7.2-extra\conf.d\intl.ini,
C:\usr\sbin\php-7.2-extra\conf.d\ldap.ini,
C:\usr\sbin\php-7.2-extra\conf.d\mysql.ini,
C:\usr\sbin\php-7.2-extra\conf.d\openssl.ini,
C:\usr\sbin\php-7.2-extra\conf.d\phar.ini,
C:\usr\sbin\php-7.2-extra\conf.d\shmop.ini,
C:\usr\sbin\php-7.2-extra\conf.d\sockets.ini,
C:\usr\sbin\php-7.2-extra\conf.d\sqlite.ini,
C:\usr\sbin\php-7.2-extra\conf.d\tidy.ini,
C:\usr\sbin\php-7.2-extra\conf.d\xdebug.ini,
C:\usr\sbin\php-7.2-extra\conf.d\xsl.ini
Volume in drive C is SysWin7 Serial number is 76a3:5886
Directory of C:\usr\sbin\php-7.2-extra\conf.d\*
05.09.2017 18:44 <DIR> .
05.09.2017 18:44 <DIR> ..
10.02.2016 03:45 110 .readme
14.08.2017 17:14 588 00-core.ini
25.12.2016 01:21 43 00-date.ini
12.05.2017 21:54 1 893 00-extensions.ini
25.12.2016 01:24 514 00-mail.ini
25.12.2016 01:19 182 10-mbstring.ini
20.03.2017 18:35 158 10-session.ini
25.12.2016 01:15 32 bz2.ini
09.12.2016 02:25 40 crypto.ini
25.12.2016 01:16 34 curl.ini
25.12.2016 03:04 34 exif.ini
25.12.2016 03:11 40 fileinfo.ini
25.12.2016 03:10 32 ftp.ini
25.12.2016 01:32 63 gd2.ini
11.12.2016 22:11 40 gettext.ini
25.12.2016 01:16 32 gmp.ini
25.12.2016 01:19 113 iconv.ini
25.12.2016 01:16 34 imap.ini
09.12.2016 02:54 62 intl.ini
10.02.2016 04:00 55 ldap.ini
11.08.2017 12:24 3 014 mysql.ini
25.12.2016 01:17 40 openssl.ini
27.02.2016 20:42 33 phar.ini
25.12.2016 03:33 36 shmop.ini
25.12.2016 01:17 40 sockets.ini
24.12.2016 11:52 42 sqlite.ini
09.12.2016 02:53 419 tidy.ini
21.06.2017 13:11 738 xdebug.ini
20.03.2017 18:23 32 xsl.ini
8 493 bytes in 29 files and 2 dirs 118 784 bytes allocated
27 116 150 784 bytes free
Volume in drive C is SysWin7 Serial number is 76a3:5886
Directory of C:\usr\sbin\php-7.2.0RC1\conf.d\*
05.09.2017 18:50 <DIR> .
05.09.2017 18:50 <DIR> ..
0 bytes in 0 files and 2 dirs
27 116 150 784 bytes free
Actual result:
--------------
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\usr\sbin\php-7.2.0RC1\php-cli.ini
Scan for additional .ini files in: C:\usr\sbin\php-7.2-extra\conf.d;C:\usr\sbin\php-7.2.0RC1\conf.d
Additional .ini files parsed: (none)
Volume in drive C is SysWin7 Serial number is 76a3:5886
Directory of C:\usr\sbin\php-7.2-extra\conf.d\*
05.09.2017 18:44 <DIR> .
05.09.2017 18:44 <DIR> ..
10.02.2016 03:45 110 .readme
14.08.2017 17:14 588 00-core.ini
25.12.2016 01:21 43 00-date.ini
12.05.2017 21:54 1 893 00-extensions.ini
25.12.2016 01:24 514 00-mail.ini
25.12.2016 01:19 182 10-mbstring.ini
20.03.2017 18:35 158 10-session.ini
25.12.2016 01:15 32 bz2.ini
09.12.2016 02:25 40 crypto.ini
25.12.2016 01:16 34 curl.ini
25.12.2016 03:04 34 exif.ini
25.12.2016 03:11 40 fileinfo.ini
25.12.2016 03:10 32 ftp.ini
25.12.2016 01:32 63 gd2.ini
11.12.2016 22:11 40 gettext.ini
25.12.2016 01:16 32 gmp.ini
25.12.2016 01:19 113 iconv.ini
25.12.2016 01:16 34 imap.ini
09.12.2016 02:54 62 intl.ini
10.02.2016 04:00 55 ldap.ini
11.08.2017 12:24 3 014 mysql.ini
25.12.2016 01:17 40 openssl.ini
27.02.2016 20:42 33 phar.ini
25.12.2016 03:33 36 shmop.ini
25.12.2016 01:17 40 sockets.ini
24.12.2016 11:52 42 sqlite.ini
09.12.2016 02:53 419 tidy.ini
21.06.2017 13:11 738 xdebug.ini
20.03.2017 18:23 32 xsl.ini
8 493 bytes in 29 files and 2 dirs 118 784 bytes allocated
27 116 150 784 bytes free
Volume in drive C is SysWin7 Serial number is 76a3:5886
Directory of C:\usr\sbin\php-7.2.0RC1\conf.d\*
05.09.2017 18:50 <DIR> .
05.09.2017 18:50 <DIR> ..
0 bytes in 0 files and 2 dirs
27 116 150 784 bytes free
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75159&edit=1