ID: 36563 Updated by: [EMAIL PROTECTED] Reported By: jasper at album dot co dot nz Status: Open Bug Type: Documentation problem Operating System: Linux PHP Version: Irrelevant New Comment:
"This function internally uses the output buffering with this parameter so it can not be used inside ob_start() callback function." by highlight_file(), highlight_string(), print_r() and var_export(). I see nothing wrong with debug_print_backtrace(). Previous Comments: ------------------------------------------------------------------------ [2006-02-28 19:57:04] jasper at album dot co dot nz Description: ------------ It needs to be documented that print_r and var_export, with the second parameter TRUE, internally use output buffering to return their result rather than output it. This causes them to fail when used within an output buffering callback handler. Alternatively, this could be changed to a feature request and the code could be changed to not use output buffering. Reproduce code: --------------- <?php function ob_handler( $in ) { return var_export( $in, true ); } ob_start( 'ob_handler' ); echo "Hello"; ?> Expected result: ---------------- 'Hello' Actual result: -------------- Fatal error: var_export(): Cannot use output buffering in output buffering display handlers in Command line code on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36563&edit=1