#27929 [NEW]: Please change atribute of ArrayIterator::__construct
| From: | juwe at clasennet dot de | Date: | Fri, 09 Apr 2004 11:02:48 +0000 |
| Subject: | #27929 [NEW]: Please change atribute of ArrayIterator::__construct | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-57846@lists.php.net to get a copy of this message | ||
From: juwe at clasennet dot de
Operating system: Does not matter
PHP version: 5CVS-2004-04-09 (dev)
PHP Bug Type: Feature/Change Request
Bug description: Please change atribute of ArrayIterator::__construct
Description:
------------
Hello,
when I just tested the SPL I found a necessity to create an iterator for
an existing array. Since ArrayIterator::__construct() is currently
declared private, I've first had to create a completely unnecessary (well,
at least from my point of view) instance of ArrayObject, just to produce
an Iterator with ArrayObject::getInstance().
Could someone please have a look at that one and decide if it is possible
to allow public access on ArrayIterators without the necessety to create
foreign objects in before?
I know this is just a minor issue at the moment, but I'd prefer such
things beeing changed, before they are used in a productive environment.
Thanks
Jens Clasen
P.S.: Please excuse my bad english - I am no native speaker.
--
Edit bug report at http://bugs.php.net/?id=27929&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27929&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27929&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27929&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27929&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27929&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27929&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27929&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27929&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27929&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27929&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27929&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27929&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27929&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27929&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27929&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27929&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27929&r=float