Home » PHP » Var_Dump » Bug #2733
Cannot use output buffering in output buffering display handlers
Details
| Submitted | 2004-11-10 16:06 UTC |
|---|---|
| From | 0x33 at free dot fr |
| Assigned | fredericpoeydomenge |
| Status | Bogus |
| Package | Var_Dump |
| PHP Version | 4.3.9 |
| OS | Debian GNU/Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-11-10 16:06 UTC] 0x33 at free dot fr
Description:
------------
When using Var_Dump class in an output buffering display handlers, it causes an error.
Reproduce code:
---------------
<?php
ob_start('customFlush');
function customFlush($buffer) {
return $buffer . Var_Dump::display(array(1, 2, 3));
}
?>
Expected result:
----------------
the buffer + the dump of the variable
Actual result:
--------------
Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in /usr/share/pear/Var_Dump.php on line 162