summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_basic_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/output/ob_start_basic_003.phpt')
-rw-r--r--tests/output/ob_start_basic_003.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/output/ob_start_basic_003.phpt b/tests/output/ob_start_basic_003.phpt
new file mode 100644
index 0000000..ebd883a
--- /dev/null
+++ b/tests/output/ob_start_basic_003.phpt
@@ -0,0 +1,18 @@
+--TEST--
+ob_start(): ensure even fatal error test is affected by output buffering.
+--FILE--
+<?php
+
+function f() {
+ return "I have stolen your output";
+}
+
+ob_start('f');
+cause_fatal_error(); // call undefined function
+ob_end_flush();
+
+echo "done (you shouldn't see this)";
+
+?>
+--EXPECTF--
+I have stolen your output \ No newline at end of file