ob_start_error_003.phpt 451 B

12345678910111213141516171819202122
  1. --TEST--
  2. Test ob_start() with object supplied but no 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)));
  13. echo "done"
  14. ?>
  15. --EXPECTF--
  16. Warning: ob_start(): array must have exactly two members in %s on line %d
  17. Notice: ob_start(): failed to create buffer in %s on line 11
  18. bool(false)
  19. done