From 0892b27e326f14bd3f6229b55077ef5f9d5280b4 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 21 May 2011 18:14:36 +0000 Subject: branch/3.1: merged bugfixes from trunk/ up to current --- framework/Collections/TStack.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Collections/TStack.php') diff --git a/framework/Collections/TStack.php b/framework/Collections/TStack.php index 3c8d5fc6..42b10674 100644 --- a/framework/Collections/TStack.php +++ b/framework/Collections/TStack.php @@ -150,7 +150,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable */ public function getIterator() { - return new TStackIterator($this->_d); + return new ArrayIterator( $this->_d ); } /** @@ -180,6 +180,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable * TStackIterator is used by TStack. It allows TStack to return a new iterator * for traversing the items in the list. * + * @deprecated Issue 264 : ArrayIterator should be used instead * @author Qiang Xue * @version $Id$ * @package System.Collections -- cgit v1.2.3