Req #37193 [Opn->Csd]: PHP-CGI doesn't allow overriding php.ini path in CGI mode
| From: | cmb@php.net | Date: | Wed, 03 Feb 2021 12:00:43 +0000 |
| Subject: | Req #37193 [Opn->Csd]: PHP-CGI doesn't allow overriding php.ini path in CGI mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231907@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=37193&edit=1
ID: 37193
Updated by: cmb@php.net
Reported by: davidgaramond at gmail dot com
Summary: PHP-CGI doesn't allow overriding php.ini path in CGI
mode
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: CGI/CLI related
Operating System: Debian/GNU Linux 3.1
PHP Version: 4.4.2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This has been changed long ago (PHP-5.0).
Previous Comments:
------------------------------------------------------------------------
[2006-04-25 09:14:16] davidgaramond at gmail dot com
Description:
------------
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 @@
}
#endif
- if (!cgi
+ if (1
#if PHP_FASTCGI
/* allow ini override for fastcgi */
#endif
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=37193&edit=1