From: SVN Migration Date: Sat, 9 Aug 2003 16:44:34 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC4~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d58f59788579e2201a409f73493380cbc5cbdde7;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/array/bug24980.phpt b/ext/standard/tests/array/bug24980.phpt new file mode 100644 index 0000000000..b9e04fd67f --- /dev/null +++ b/ext/standard/tests/array/bug24980.phpt @@ -0,0 +1,53 @@ +--TEST-- +Bug #24980 (array_reduce() uses first element as default running total) +--FILE-- + +--EXPECT-- +running_total is 0, current_value is 2 +running_total is 4, current_value is 3 +running_total is 13, current_value is 5 +running_total is 38, current_value is 7 +Total is 87 +string(3) "abc" +int(15) +int(1200) +int(1) diff --git a/tests/lang/bug24951.phpt b/tests/lang/bug24951.phpt new file mode 100644 index 0000000000..aa48ab2936 --- /dev/null +++ b/tests/lang/bug24951.phpt @@ -0,0 +1,42 @@ +--TEST-- +Bug #24951 (ob_flush() destroys output handler) +--FILE-- + +--EXPECT-- +[Hello from t1 1 Hello from t1 2 ] + +[Hello from t2 1 Hello from t2 2 ] + +Hello from t3 2 ]