php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73904 php-cgi fails to load -c specified php.ini file
Submitted: 2017-01-10 11:22 UTC Modified: 2017-01-12 15:16 UTC
From: danothy at gmail dot com Assigned: ab (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 7.1.0 OS: Windows 10
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: danothy at gmail dot com
New email:
PHP Version: OS:

 

 [2017-01-10 11:22 UTC] danothy at gmail dot com
Description:
------------
Running

> php-cgi.exe -b address:port -c conf\php.ini

fails to load the specified php.ini file, with phpinfo() showing "Loaded Configuration File | (none)"

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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-11 04:45 UTC] krakjoe@php.net
-Assigned To: +Assigned To: ab
 [2017-01-11 04:45 UTC] krakjoe@php.net
Assigning to you Anatol: Could you take a quick look at this please ?
 [2017-01-11 12:05 UTC] danothy at gmail dot com
Apologies, I left out a piece of information, and this may be an untamed ornithoid pursuit. Failure to load php.ini file occurs when

> set PHP_FCGI_CHILDREN=1
> php-cgi.exe -b address:port -c conf\php.ini

is run.  Not setting the PHP_FCGI_CHILDREN environment variable in the start-up script leads to loading of the php.ini file as expected.
 [2017-01-12 13:18 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9f3b3a55fec84609a4e64321413fe80f0ecbd667
Log: Fixed bug #73904 php-cgi fails to load -c specified php.ini file
 [2017-01-12 13:18 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2017-01-12 15:16 UTC] ab@php.net
Please test the latest master snapshot.

Thanks.
 [2017-01-12 16:28 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e65760f878a116d7ffc858c5a0e30f6075230443
Log: Fixed bug #73904 php-cgi fails to load -c specified php.ini file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 08:01:29 2024 UTC