bug61820.phpt 311 B

123456789101112131415161718192021
  1. --TEST--
  2. bug #61820 using ob_gzhandler will complain about headers already sent when no compression
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. ob_start('ob_gzhandler');
  8. echo "Hi there.\n";
  9. ob_flush();
  10. flush();
  11. echo "This is confusing...\n";
  12. ob_flush();
  13. flush();
  14. ?>
  15. DONE
  16. --EXPECT--
  17. Hi there.
  18. This is confusing...
  19. DONE