Re: [PATCH] Apache 2.0 Handler module

From: Date: Mon, 10 Feb 2003 21:08:48 +0000
Subject: Re: [PATCH] Apache 2.0 Handler module
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-94134@lists.php.net to get a copy of this message
--On Monday, February 10, 2003 3:44 PM -0500 "Ilia A." <ilia@prohost.org> wrote:
The patch appears to work correctly with only one 'interesting' bug. When the virtual() function is used to include a php file or php files are included via the use of mod_include, random binary data is dumped on screen. This is particular to PHP files, as virtual() function can successfully include as many non-php files as you want without encountering this problem.
I don't have a problem with the following setup: test.shtml: <!--#include virtual="/test.php" --> <!--#printenv --> test.php: <?php phpinfo(); ?> httpd.conf: AddOutputFilter INCLUDES .shtml AddHandler php-script .php Requesting test.shtml prints out the expected information for me (i.e. the PHP info followed by the debug mod_include info). I don't know how to do a virtual with PHP (don't have time to look up the docs). (Note this is using HEAD of the httpd-2.0 tree (aka httpd 2.1).) I really don't have time to do more. Feel free to commit it and work on it. But, I don't really plan on spending more time on this. Hopefully, this will point someone in the right direction. -- justin

« previous php.dev (#94134) next »