summaryrefslogtreecommitdiff
path: root/sapi/apache/php_apache.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-05-07 11:07:22 +0000
committerZeev Suraski <zeev@php.net>2001-05-07 11:07:22 +0000
commitd229f82a46055e86395f477e3b5754a3bdf215c5 (patch)
tree0555636b3995615ab8ced95229f1f52c8be4c9dc /sapi/apache/php_apache.c
parent21ec6e29932706f090880c1f207ffd68a5b8db40 (diff)
downloadphp-git-d229f82a46055e86395f477e3b5754a3bdf215c5.tar.gz
Allow virtual() of PHP files. We may have to improve the detection code a
bit, but it worked well on everything I tried.
Diffstat (limited to 'sapi/apache/php_apache.c')
-rw-r--r--sapi/apache/php_apache.c9
1 files changed, 0 insertions, 9 deletions
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 <code>&lt;?include \"%s\"&gt;</code> instead)", (*filename)->value.str.val);
- if (rr) destroy_sub_req (rr);
- RETURN_FALSE;
- }
-
php_end_ob_buffers(1);
php_header();