ob_implicit_flush_basic_001.phpt 588 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Test ob_implicit_flush() function : check return value (always null).
  3. --FILE--
  4. <?php
  5. /* Prototype : proto void ob_implicit_flush([int flag])
  6. * Description: Turn implicit flush on/off and is equivalent to calling flush() after every output call
  7. * Source code: main/output.c
  8. * Alias to functions:
  9. */
  10. echo "*** Testing ob_implicit_flush() : check return value ***\n";
  11. var_dump(ob_implicit_flush());
  12. var_dump(ob_implicit_flush(true));
  13. var_dump(ob_implicit_flush(false));
  14. echo "Done";
  15. ?>
  16. --EXPECT--
  17. *** Testing ob_implicit_flush() : check return value ***
  18. NULL
  19. NULL
  20. NULL
  21. Done