mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
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:
parent
d8a4278ab4
commit
52ff887db5
9 changed files with 176 additions and 105 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue