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.
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.
-----Original Message-----
From: dAniel hAhler [mailto:php@thequod.de]
Sent: Thursday, April 13, 2006 3:36 AM
To: internals@lists.php.net
Subject: [PHP-DEV] [PATCH] Parse "-d / --define" for php-cgi
/ php-fastcgiHello,
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.