Re: [PHP3] Apache modules, PHP & stdin

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: [PHP3] Apache modules, PHP & stdin
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11097@lists.php.net to get a copy of this message
> The method you described above would problably be perfect if I wanted to > pass any form of data from the Apache module to PHP. The thing is I want > PHP to execute code. Couldn't you just eval() the data returned by apache_note()? You seem to be under the impression that the module version of PHP parses data on stdin and if you could just get your data onto stdin your problems would be solved. This is not the case at all. Apache passes PHP a filename which PHP then opens and parses. There is absolutely no provision to parse data on stdin in the module version. To escape the eval() solution, you'd need to hack up mod_php3.c and do some magic there. Note that apache_php3_module_main() is expecting a file descriptor which it then does an fdopen() on and feeds that to the parser. -Rasmus

« previous php.dev (#11097) next »