Zeev Suraski wrote: > zeev Mon Sep 23 10:18:43 2002 EDT > > Modified files: > /php4/main output.c > Log: > Fix bug #19525
<?php ob_start('callback'); function callback($buffer) { ob_start(); eval($buffer); $result = ob_get_contents(); ob_end_clean(); return $result; } ?> echo 'test'; now prints in HEAD Cannot use output buffering in output buffering display handlers as it already does in the 4.2.3 release. How am I supposed to catch the result of an eval() command inside an output buffer? A possibility would be to change the behaviour of eval() and let it return an array with both output and return value of the evaluated code. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php