summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_basic_006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/output/ob_start_basic_006.phpt')
-rw-r--r--tests/output/ob_start_basic_006.phpt43
1 files changed, 27 insertions, 16 deletions
diff --git a/tests/output/ob_start_basic_006.phpt b/tests/output/ob_start_basic_006.phpt
index ff7a0cd..e24ebd6 100644
--- a/tests/output/ob_start_basic_006.phpt
+++ b/tests/output/ob_start_basic_006.phpt
@@ -1,5 +1,5 @@
--TEST--
-ob_start(): ensure multiple buffer initialization with a single call using arrays is not supported on PHP6 (http://bugs.php.net/42641)
+ob_start(): multiple buffer initialization with a single call, using arrays.
--FILE--
<?php
/*
@@ -72,37 +72,46 @@ var_dump(ob_start(array('f', 'C::g', array(array($c, "g"), array($c, "h")))));
checkAndClean();
?>
--EXPECTF--
- ---> Test arrays:
-Notice: ob_start(): failed to create buffer in %s on line 44
-bool(false)
+ ---> Test arrays:
+f[call:1; len:34] - bool(true)
Array
(
+ [0] => f
)
-Notice: ob_start(): failed to create buffer in %s on line 47
-bool(false)
+f[call:3; len:68] - f[call:2; len:47] - bool(true)
Array
(
+ [0] => f
+ [1] => f
)
-Notice: ob_start(): failed to create buffer in %s on line 50
-bool(false)
+
+f[call:5; len:150] - C::g[call:2; len:125] - f[call:4; len:103] - C::g[call:1; len:79] - bool(true)
Array
(
+ [0] => f
+ [1] => C::g
+ [2] => f
+ [3] => C::g
)
-Notice: ob_start(): failed to create buffer in %s on line 53
-bool(false)
+
+
+
+f[call:6; len:35] - bool(false)
Array
(
+ [0] => f
)
-Notice: ob_start(): failed to create buffer in %s on line 56
-bool(false)
+f[call:7; len:35] - bool(false)
Array
(
+ [0] => f
)
+
C::h[call:1; len:37; id:originalID] - bool(true)
Array
(
@@ -115,9 +124,11 @@ Array
[0] => C::h
)
-
-Notice: ob_start(): failed to create buffer in %s on line 68
-bool(false)
+f[call:8; len:175] - C::g[call:4; len:150] - C::g[call:3; len:125] - C::h[call:3; len:82; id:changedIDagain] - bool(true)
Array
(
-)
+ [0] => f
+ [1] => C::g
+ [2] => C::g
+ [3] => C::h
+) \ No newline at end of file