From: Stanislav Malyshev Date: Mon, 16 Jun 2003 09:20:42 +0000 (+0000) Subject: add tests for fixed bugs X-Git-Tag: RELEASE_1_0_2~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91ec828de5a4d3c5e608b5f970a545841877f67a;p=php add tests for fixed bugs --- diff --git a/tests/lang/bug18872.phpt b/tests/lang/bug18872.phpt new file mode 100644 index 0000000000..2e3dc22c58 --- /dev/null +++ b/tests/lang/bug18872.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #18872 (class constant used as default parameter) +--FILE-- + +--EXPECT-- +3 +3 diff --git a/tests/lang/bug23279.phpt b/tests/lang/bug23279.phpt new file mode 100644 index 0000000000..78d7850ff4 --- /dev/null +++ b/tests/lang/bug23279.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #23279 (exception handler stops after first function call) +--FILE-- + +--EXPECT-- +Goodbye Cruel World diff --git a/tests/lang/bug23384.phpt b/tests/lang/bug23384.phpt new file mode 100644 index 0000000000..e6184c4690 --- /dev/null +++ b/tests/lang/bug23384.phpt @@ -0,0 +1,30 @@ +--TEST-- +Bug #23384 (use of class constants in statics) +--FILE-- + 'ten'); + static $arr = array(Foo::HUN => 'ten'); + + print_r($arr); + print_r($arr2); + print_r($x); + } +} + +Foo::test(); +echo Foo::HUN."\n"; +?> +--EXPECT-- +Array +( + [100] => ten +) +Array +( + [10] => ten +) +100100