--- /dev/null
+--TEST--
+Bug #26229 (getIterator() segfaults when it returns arrays or scalars)
+--FILE--
+<?php
+
+class array_iterator implements IteratorAggregate {
+ public function getIterator() {
+ return array('foo', 'bar');
+ }
+}
+
+$obj = new array_iterator;
+
+foreach ($obj as $property => $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
--- /dev/null
+--TEST--
+Bug #26695 (Reflection API does not recognize mixed-case class hints)
+--FILE--
+<?php
+
+class Foo {
+}
+
+class Bar {
+ function demo(foo $f) {
+ }
+}
+
+$class = new Reflection_Class('bar');
+$methods = $class->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
--- /dev/null
+--TEST--
+Bug #23524 Improper handling of constants in array indeces
+--FILE--
+<?php
+ echo "Begin\n";
+ define("THE_CONST",123);
+ function f($a=array(THE_CONST=>THE_CONST)) {
+ print_r($a);
+ }
+ f();
+ f();
+ f();
+ echo "Done";
+?>
+--EXPECT--
+Begin
+Array
+(
+ [123] => 123
+)
+Array
+(
+ [123] => 123
+)
+Array
+(
+ [123] => 123
+)
+Done
--- /dev/null
+--TEST--
+Bug #22592 (Cascading assignments to strings with curly braces broken)
+--FILE--
+<?php
+$wrong = $correct = 'abcdef';
+
+$t = $x[] = 'x';
+
+var_dump($correct);
+var_dump($wrong);
+
+$correct{1} = '*';
+$correct{3} = '*';
+$correct{5} = '*';
+
+// This produces the
+$wrong{1} = $wrong{3} = $wrong{5} = '*';
+
+var_dump($correct);
+var_dump($wrong);
+
+?>
+--EXPECT--
+string(6) "abcdef"
+string(6) "abcdef"
+string(6) "a*c*e*"
+string(6) "a*c*e*"