I don't have a problem with the following setup: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.
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php