ob_get_clean_basic_001.phpt 318 B

123456789101112131415161718
  1. --TEST--
  2. Test return type and value, as well as basic behaviour, of ob_get_clean()
  3. --FILE--
  4. <?php
  5. /*
  6. * proto bool ob_get_clean(void)
  7. * Function is implemented in main/output.c
  8. */
  9. var_dump(ob_get_clean());
  10. ob_start();
  11. echo "Hello World";
  12. var_dump(ob_get_clean());
  13. ?>
  14. --EXPECT--
  15. bool(false)
  16. string(11) "Hello World"