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;
}
This commit is contained in:
Zeev Suraski 2000-07-29 14:46:09 +00:00
parent d8a4278ab4
commit 52ff887db5
9 changed files with 176 additions and 105 deletions

View file

@ -89,7 +89,7 @@ int apache_php_module_main(request_rec *r, int display_source_mode CLS_DC ELS_DC
}
php_header(); /* Make sure headers have been sent */
php_end_ob_buffering(1);
php_end_ob_buffers(1);
return (OK);
}