#37193 [NEW]: PHP-CGI doesn't allow overriding php.ini path in CGI mode
| From: | davidgaramond at gmail dot com | Date: | Tue, 25 Apr 2006 09:14:16 +0000 |
| Subject: | #37193 [NEW]: PHP-CGI doesn't allow overriding php.ini path in CGI mode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96204@lists.php.net to get a copy of this message | ||
From: davidgaramond at gmail dot com
Operating system: Debian/GNU Linux 3.1
PHP version: 4.4.2
PHP Bug Type: Feature/Change Request
Bug description: PHP-CGI doesn't allow overriding php.ini path in CGI mode
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 bug report at http://bugs.php.net/?id=37193&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37193&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37193&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37193&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37193&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37193&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37193&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37193&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37193&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37193&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37193&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37193&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37193&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37193&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37193&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37193&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37193&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37193&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37193&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37193&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37193&r=mysqlcfg