Re: cvs: php4 /main output.c

From: Date: Mon, 23 Sep 2002 14:38:54 +0000
Subject: Re: cvs: php4 /main output.c
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-88531@lists.php.net to get a copy of this message
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/

« previous php.dev (#88531) next »