|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37193 PHP-CGI doesn't allow overriding php.ini path in CGI mode
Submitted: 2006-04-25 09:14 UTC Modified: 2021-02-03 12:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: davidgaramond at gmail dot com Assigned: cmb (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 4.4.2 OS: Debian/GNU Linux 3.1
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.
Block user comment
Status: Assign to:
Bug Type:
From: davidgaramond at gmail dot com
New email:
PHP Version: OS:


 [2006-04-25 09:14 UTC] davidgaramond at gmail dot com
I don't see why PHP-CGI binary in CGI mode should not allow overriding php.ini location. Please kindly consider this simple patch:

diff -ruN -x '*~' php4-4.4.2.orig/sapi/cgi/cgi_main.c php4-4.4.2.EDIT/sapi/cgi/cgi_main.c
--- php4-4.4.2.orig/sapi/cgi/cgi_main.c 2006-01-01 20:47:01.000000000 +0700
+++ php4-4.4.2.EDIT/sapi/cgi/cgi_main.c 2006-03-19 22:27:34.000000000 +0700
@@ -1040,7 +1040,7 @@

-       if (!cgi
+       if (1
                /* allow ini override for fastcgi */


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:22 UTC]
-Package: Feature/Change Request +Package: CGI related
 [2021-02-03 12:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-02-03 12:00 UTC]
This has been changed long ago (PHP-5.0).
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Aug 03 02:01:24 2021 UTC