From 52ff887db511cd393b04468e2b0a4b77859f5bd5 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 29 Jul 2000 14:46:09 +0000 Subject: Made ob_start() and friends reentrant. It's now possible to implement this long-requested functionality, now that output buffering is re-entrant: function eval_ret($code) { ob_start(); eval($code); $retval = ob_get_contents(); ob_end_clean(); return $retval; } --- sapi/apache/php_apache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/apache/php_apache.c') diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index b6ea226274..25874c4a51 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -320,7 +320,7 @@ PHP_FUNCTION(virtual) RETURN_FALSE; } - php_end_ob_buffering(1); + php_end_ob_buffers(1); php_header(); if (run_sub_req(rr)) { -- cgit v1.2.1