From: Jason S. <jsw...@ya...> - 2003-03-26 23:37:48
|
Hi Arnold, I needed to use a stack today and tried to used the one from the Phrame utils. In order to get it to work correctly I had to make the following tweaks: In ArrayList.php, toArray needed to be declared to return by reference: function &toArray() { return $this->_elements; } and in Stack.php, peek() needs to end, not reset: function peek() { return end($this->toArray()); } Did you have any further thoughts about checking Phrame into the sf.net cvs? Jason __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |