From: Operating system: Arch 32 bit PHP version: 5.4.0 Package: Output Control Bug Type: Bug Bug description:ob_start callback get passed empty string
Description: ------------ Running test script below with PHP 5.4 outputs "" Running test script below with PHP 5.3 outputs "hello" Test script: --------------- <?php $buffer = -1; function callback($output) { global $buffer; $buffer = $output; return $output; } ob_start('callback'); echo 'hello'; ob_get_clean(); var_dump($buffer); Expected result: ---------------- "hello" Actual result: -------------- "" -- Edit bug report at https://bugs.php.net/bug.php?id=61272&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61272&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61272&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61272&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61272&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61272&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61272&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61272&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61272&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61272&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61272&r=support Expected behavior: https://bugs.php.net/fix.php?id=61272&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61272&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61272&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61272&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61272&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61272&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61272&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61272&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61272&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61272&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61272&r=mysqlcfg