bug45392.phpt 437 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #45392 (ob_start()/ob_end_clean() and memory_limit)
  3. --INI--
  4. display_errors=stderr
  5. --SKIPIF--
  6. <?php
  7. if (getenv("USE_ZEND_ALLOC") === "0") {
  8. die("skip Zend MM disabled");
  9. }
  10. --FILE--
  11. <?php
  12. echo __LINE__ . "\n";
  13. ini_set('memory_limit', 100);
  14. ob_start();
  15. $i = 0;
  16. while($i++ < 5000) {
  17. echo str_repeat("may not be displayed ", 42);
  18. }
  19. ob_end_clean();
  20. ?>
  21. --EXPECTF--
  22. 2
  23. Fatal error: Allowed memory size of %d bytes exhausted%s