ID: 27224 User updated by: reklov at unitedklasens dot de Reported By: reklov at unitedklasens dot de Status: Bogus Bug Type: Unknown/Other Function Operating System: Win98SE PHP Version: 4.3.4 New Comment:
Ok, thx...it seems, it was a missunderstanding while reading the manual (http://reklov.homeip.net/manual/PHP/function.ob-get-flush.html): ob_get_flush -- Flush the output buffer, return it as a string and turn off output buffering <--- i understood it this way: flush the output into a string an turn off... instead of flush (understood as delete) the output, send it and return to a string and turn off... perhaps this happened, because of my not very well english (i guess, you have already noticed that...) Thx for the answer Previous Comments: ------------------------------------------------------------------------ [2004-02-11 15:52:54] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php from manual (http://nl3.php.net/ob_flush): ob_flush -- Flush (send) the output buffer see also: http://nl3.php.net/manual/en/function.ob-get-clean.php ------------------------------------------------------------------------ [2004-02-11 15:50:38] reklov at unitedklasens dot de Description: ------------ On the contrary to the tip in the documentation (http://www.php.net/manual/en/function.var-dump.php), there's no chance to stop var_dump() from outputting. Although you can save it with output buffering into a string, it will be sent to output, anyway... As you can see in the example, the var_dump()-output is sent to output twice, first from var_dump(9), second from echo $output. Reproduce code: --------------- <pre> <?php $a = 'Output'; echo 'Output from var_dump():'."\n"; ob_start(); var_dump($a); $output = ob_get_flush(); echo 'Same as above: '."\n".$output; ?> </pre> Expected result: ---------------- <pre> Output from var_dump(): Same as above: string(6) "Output" </pre> Actual result: -------------- <pre> Output from var_dump(): string(6) "Output" Same as above: string(6) "Output" </pre> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27224&edit=1