Re: [cgiwrap-users] CreateInterpreterARGV Broken?
Brought to you by:
nneul
From: <ms...@fr...> - 2004-10-07 04:52:02
|
On Oct 6, 2004, at 11:58 AM, Pierre Machard wrote: > Hello, > > On Wed, Oct 06, 2004 at 10:25:50AM -0700, ms...@fr... wrote: > [...] >> Turns out the problem was that the Debian CGIWrap package uses the >> PHP4 >> CLI instead of the PHP4 CGI (presumably to keep interpreters out of >> the >> webroot). I guess the CGI uses environment variables to locate >> scripts, >> so is unaffected by the argument array. > > I am maintaining the Debian package of cgiwrap. What package are you > using? Thank you for maintaining the Debian CGIWrap packages, Pierre; I'm glad they are part of the distribution! Unfortunately, I observe that the php-cgiwrap package is broken in unstable. It is broken because /usr/bin/php4 is provided by php4-cli, instead of php4-cgi, & CGIWrap's CreateInterpreterARGV produces an argument array which breaks the PHP4 CLI (unlike the PHP4 CGI). I do not suggest repackaging CGIWrap to use /usr/lib/cgi-bin/php4 (provided by the php4-cgi package) since this path published by the web server. Instead, I suggest fixing CreateInterpreterARGV / StripPathComponents (in util.c) to produce an argument array which may be used by PHP4 CLI. Thanks again! Jack |