On Thu, Sep 25, 2008 at 5:38 AM, Sebastian Marsching < [EMAIL PROTECTED]> wrote:
> Hi, > > J.D. Tysko schrieb: > > > We have a PHP application which needs to exec off another PHP process. > > The problem is, is that when we use a command with "php" in it, > > recursive forking is started. > > When PHP is called and the CGI specific environment variables (like > PATH_INFO, PATH_TRANSLATED, etc.) are set, PHP executes the script > specified by this environment variables and not the script specified on > the command line. > > Therefore after forking, before executing another instance of PHP you > have to unset all the CGI environment variables in order to make PHP > execute the right script. I would use env -i: $ printenv | wc -l 28 $ env -i printenv | wc -l 0 Brock
_______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp