From: mdangus at psychtest dot com Operating system: Win2K PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: iterator object not available
Description: ------------ The following code does nothing after $chapter_array->getiterator() (though the manual suggests it should work). Reproduce code: --------------- #============= $chapter_array->rewind(); $iterator=$chapter_array->getIterator(); echo $iterator->current(); echo $iterator->key(); #============= Expected result: ---------------- The value of iterator for the array $chapter_array should be echoed, the current key value of the array iterator for $chapter_array should be echoed. Actual result: -------------- Docs in error? This gets parsed but nothing happens. I have searched this, and apparently the above "object oriented" coding format for PHP originally derived from something called phplib? From what I can find in the docs, it is suggested that this object oriented functionality was added into php as a standard part of the distro as of php4. However, I can find no information on it at all. The manual says this code should work, but it has no suggestions at all as to what to do to find any necessary includes or why this code does not work in the standard distro for windows. Are the docs out of date? Am I missing something? Is there a library hidden away somewhere that one has to find and download. I have searched for about 4 days for an answer -- including 2 messages to the user mailing list which went totally unanswered. Bit of a newb with php - trying to learn from the docs... may be the docs could be improved to let people know whether the object-oriented style is supported or not. -- Edit bug report at http://bugs.php.net/?id=38119&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38119&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38119&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38119&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38119&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38119&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38119&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38119&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38119&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38119&r=support Expected behavior: http://bugs.php.net/fix.php?id=38119&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38119&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38119&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38119&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38119&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38119&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38119&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38119&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38119&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38119&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38119&r=mysqlcfg
