ob_start_error_004.phpt 456 B

12345678910111213141516171819202122
  1. --TEST--
  2. Test ob_start() with non existent callback method.
  3. --FILE--
  4. <?php
  5. /*
  6. * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
  7. * Function is implemented in main/output.c
  8. */
  9. Class C {
  10. }
  11. $c = new C;
  12. var_dump(ob_start(array($c, 'f')));
  13. echo "done"
  14. ?>
  15. --EXPECTF--
  16. Warning: ob_start(): class 'C' does not have a method 'f' in %s on line %d
  17. Notice: ob_start(): failed to create buffer in %s on line 11
  18. bool(false)
  19. done