cvs: ZendEngine2 /tests bug26229.phpt bug26695.phpt

From: Date: Mon, 22 Dec 2003 22:51:09 +0000
Subject: cvs: ZendEngine2 /tests bug26229.phpt bug26695.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2151@lists.php.net to get a copy of this message
helly Mon Dec 22 17:51:09 2003 EDT Added files: /ZendEngine2/tests bug26229.phpt bug26695.phpt Log: Add more tests Index: ZendEngine2/tests/bug26229.phpt +++ ZendEngine2/tests/bug26229.phpt --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=== Index: ZendEngine2/tests/bug26695.phpt +++ ZendEngine2/tests/bug26695.phpt --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===

« previous php.zend-engine.cvs (#2151) next »