[cgiwrap-users] [PATCH] support "nph-" & "php-" when full path in argv[0]
Brought to you by:
nneul
From: <ms...@fr...> - 2005-11-07 23:59:41
|
I think recent versions of Apache 2 include CGIwrap's full path in argv[0] Consequently, php-cgiwrap started complaining that my phps lacked executable permissions This was a problem with CGIwrap - util.c:679 - if we're passing to interpreter, isn't an error to be non-executable Instead, Context.interpreted_script wasn't getting set, because argv[0] no-longer started with "php-" (it was "/.../php-cgiwrap") This patch fixes the problem for me. I tested it in the case that argv[0] is a full path & that it is just the last component Many thanks for CGIwrap! Jack |