From 7012611307105fd82ec694b8c76f973743049ad5 Mon Sep 17 00:00:00 2001 From: andy wharmby Date: Sun, 14 Jun 2009 16:47:12 +0000 Subject: [PATCH] Backport ob test to php 5.2 and 53. --- tests/output/ob_001.phpt | 8 ++++++++ tests/output/ob_002.phpt | 9 +++++++++ tests/output/ob_003.phpt | 13 +++++++++++++ tests/output/ob_004.phpt | 11 +++++++++++ tests/output/ob_005.phpt | 14 ++++++++++++++ tests/output/ob_006.phpt | 12 ++++++++++++ tests/output/ob_007.phpt | 11 +++++++++++ tests/output/ob_008.phpt | 11 +++++++++++ tests/output/ob_009.phpt | 12 ++++++++++++ tests/output/ob_010.phpt | 13 +++++++++++++ 10 files changed, 114 insertions(+) create mode 100644 tests/output/ob_001.phpt create mode 100644 tests/output/ob_002.phpt create mode 100644 tests/output/ob_003.phpt create mode 100644 tests/output/ob_004.phpt create mode 100644 tests/output/ob_005.phpt create mode 100644 tests/output/ob_006.phpt create mode 100644 tests/output/ob_007.phpt create mode 100644 tests/output/ob_008.phpt create mode 100644 tests/output/ob_009.phpt create mode 100644 tests/output/ob_010.phpt diff --git a/tests/output/ob_001.phpt b/tests/output/ob_001.phpt new file mode 100644 index 0000000000..ecacf0208b --- /dev/null +++ b/tests/output/ob_001.phpt @@ -0,0 +1,8 @@ +--TEST-- +output buffering - nothing +--FILE-- + +--EXPECT-- +foo diff --git a/tests/output/ob_002.phpt b/tests/output/ob_002.phpt new file mode 100644 index 0000000000..94f515b02d --- /dev/null +++ b/tests/output/ob_002.phpt @@ -0,0 +1,9 @@ +--TEST-- +output buffering - ob_start +--FILE-- + +--EXPECT-- +foo diff --git a/tests/output/ob_003.phpt b/tests/output/ob_003.phpt new file mode 100644 index 0000000000..988d19701c --- /dev/null +++ b/tests/output/ob_003.phpt @@ -0,0 +1,13 @@ +--TEST-- +output buffering - ob_flush +--FILE-- + +--EXPECT-- +foo +bar diff --git a/tests/output/ob_004.phpt b/tests/output/ob_004.phpt new file mode 100644 index 0000000000..a089a8ca58 --- /dev/null +++ b/tests/output/ob_004.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_clean +--FILE-- + +--EXPECT-- +bar diff --git a/tests/output/ob_005.phpt b/tests/output/ob_005.phpt new file mode 100644 index 0000000000..bbe807d9b8 --- /dev/null +++ b/tests/output/ob_005.phpt @@ -0,0 +1,14 @@ +--TEST-- +output buffering - ob_end_clean +--FILE-- + +--EXPECT-- +foo +baz diff --git a/tests/output/ob_006.phpt b/tests/output/ob_006.phpt new file mode 100644 index 0000000000..aec3cfc54d --- /dev/null +++ b/tests/output/ob_006.phpt @@ -0,0 +1,12 @@ +--TEST-- +output buffering - ob_end_flush +--FILE-- + +--EXPECT-- +foo +int(0) diff --git a/tests/output/ob_007.phpt b/tests/output/ob_007.phpt new file mode 100644 index 0000000000..059925cbd2 --- /dev/null +++ b/tests/output/ob_007.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_get_clean +--FILE-- + +--EXPECT-- +string(4) "foo +" diff --git a/tests/output/ob_008.phpt b/tests/output/ob_008.phpt new file mode 100644 index 0000000000..17a808119b --- /dev/null +++ b/tests/output/ob_008.phpt @@ -0,0 +1,11 @@ +--TEST-- +output buffering - ob_get_contents +--FILE-- + +--EXPECT-- +foo +foo diff --git a/tests/output/ob_009.phpt b/tests/output/ob_009.phpt new file mode 100644 index 0000000000..80edb465f7 --- /dev/null +++ b/tests/output/ob_009.phpt @@ -0,0 +1,12 @@ +--TEST-- +output buffering - ob_get_flush +--FILE-- + +--EXPECT-- +foo +string(4) "foo +" diff --git a/tests/output/ob_010.phpt b/tests/output/ob_010.phpt new file mode 100644 index 0000000000..24d650c50d --- /dev/null +++ b/tests/output/ob_010.phpt @@ -0,0 +1,13 @@ +--TEST-- +output buffering - fatalism +--FILE-- + +--EXPECTF-- +Fatal error: print_r(): Cannot use output buffering in output buffering display handlers in %sob_010.php on line %d -- 2.50.1