php-src/tests/output/ob_015.phpt

16 lines
243 B
Plaintext
Raw Permalink Normal View History

2009-06-18 21:03:00 +00:00
--TEST--
output buffering - failure
--FILE--
<?php
ob_start("str_rot13", 1);
2019-02-19 16:11:00 +00:00
try {
echo "foo\n";
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
2009-06-18 21:03:00 +00:00
ob_end_flush();
?>
2019-02-19 16:11:00 +00:00
--EXPECT--
foo
str_rot13() expects exactly 1 argument, 2 given