From d229f82a46055e86395f477e3b5754a3bdf215c5 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 7 May 2001 11:07:22 +0000 Subject: Allow virtual() of PHP files. We may have to improve the detection code a bit, but it worked well on everything I tried. --- sapi/apache/php_apache.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sapi/apache/php_apache.c') diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index f5890ba8a9..2ae7dca282 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -312,15 +312,6 @@ PHP_FUNCTION(virtual) RETURN_FALSE; } - /* Cannot include another PHP file because of global conflicts */ - if (rr->content_type && - !strcmp(rr->content_type, PHP_MIME_TYPE)) { - php_error(E_WARNING, "Cannot include a PHP file " - "(use <?include \"%s\"> instead)", (*filename)->value.str.val); - if (rr) destroy_sub_req (rr); - RETURN_FALSE; - } - php_end_ob_buffers(1); php_header(); -- cgit v1.2.1