PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » Var_Dump » Bug #2733

Cannot use output buffering in output buffering display handlers

Details

Submitted2004-11-10 16:06 UTC
From0x33 at free dot fr
Assignedfredericpoeydomenge
StatusBogus
PackageVar_Dump
PHP Version4.3.9
OSDebian 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