From: Marcus Boerger Date: Mon, 22 Dec 2003 22:53:48 +0000 (+0000) Subject: Add more tests X-Git-Tag: php_ibase_before_split~524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=717604ea70cfd7323237d1e0de9fba7b80e91786;p=php Add more tests --- diff --git a/Zend/tests/bug26229.phpt b/Zend/tests/bug26229.phpt new file mode 100755 index 0000000000..1e03bb2c49 --- /dev/null +++ b/Zend/tests/bug26229.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #26229 (getIterator() segfaults when it returns arrays or scalars) +--FILE-- + $value) { + var_dump($value); +} +?> +===DONE=== +--EXPECTF-- +Warning: Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator in %sbug26229.php on line %d +===DONE=== \ No newline at end of file diff --git a/ext/reflection/tests/bug26695.phpt b/ext/reflection/tests/bug26695.phpt new file mode 100755 index 0000000000..e2eab7e147 --- /dev/null +++ b/ext/reflection/tests/bug26695.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #26695 (Reflection API does not recognize mixed-case class hints) +--FILE-- +getMethods(); +$params = $methods[0]->getParameters(); + +$class = $params[0]->getClass(); + +var_dump($class->getName()); +?> +===DONE=== +--EXPECT-- +string(3) "Foo" +===DONE=== \ No newline at end of file diff --git a/tests/lang/bug23524.phpt b/tests/lang/bug23524.phpt new file mode 100755 index 0000000000..18ffc33a48 --- /dev/null +++ b/tests/lang/bug23524.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #23524 Improper handling of constants in array indeces +--FILE-- +THE_CONST)) { + print_r($a); + } + f(); + f(); + f(); + echo "Done"; +?> +--EXPECT-- +Begin +Array +( + [123] => 123 +) +Array +( + [123] => 123 +) +Array +( + [123] => 123 +) +Done diff --git a/tests/strings/bug22592.phpt b/tests/strings/bug22592.phpt new file mode 100755 index 0000000000..0c13e50164 --- /dev/null +++ b/tests/strings/bug22592.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #22592 (Cascading assignments to strings with curly braces broken) +--FILE-- + +--EXPECT-- +string(6) "abcdef" +string(6) "abcdef" +string(6) "a*c*e*" +string(6) "a*c*e*"