[PATCH] Parse "-d / --define" for php-cgi / php-fastcgi

php.internals

dAniel hAhler

20 years ago
Hello, please find attached a tiny patch to parse "-d" and "--define" command line arguments for fastcgi/cgi sapi. This allows overriding php.ini defaults in a very convient way in the wrapper script that gets usually used (at least in a fastcgi/suexec setup). The patch is against PHP_5_1, because AFAICS this functionality is already in HEAD?! Because 5.1.3 is about to get released, I don't think it gets added for it, but please consider it for the 5.2 branch. Thank you.

Dmitry Stogov

20 years ago
This patch willn't work for FastCGI. It will alter ini entry only for first request, but then it will be restored to previous value. The proper patch is already applied to HEAD. Thanks. Dmitry.