You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
503 B

  1. --TEST--
  2. output buffering - failure
  3. --FILE--
  4. <?php
  5. ob_start("str_rot13");
  6. echo "foo\n";
  7. // str_rot13 expects 1 param and returns NULL when passed 2 params.
  8. // It is invoked with 2 params when used as an OB callback.
  9. // Therefore, there will be no data in the buffer. This is expected: see bug 46900.
  10. ob_end_flush();
  11. // Show the error.
  12. print_r(error_get_last());
  13. ?>
  14. --EXPECTF--
  15. Array
  16. (
  17. [type] => 2
  18. [message] => str_rot13() expects exactly 1 parameter, 2 given
  19. [file] => %s
  20. [line] => 7
  21. )