ID: 38119 User updated by: mdangus at psychtest dot com Reported By: mdangus at psychtest dot com -Status: Feedback +Status: Open Bug Type: Documentation problem Operating System: Win2K PHP Version: Irrelevant New Comment:
bogus bug report - sorry - my syntax error -- not documentation error. Thanks. Previous Comments: ------------------------------------------------------------------------ [2006-07-17 06:48:46] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2006-07-17 01:06:23] mdangus at psychtest dot com 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 this bug report at http://bugs.php.net/?id=38119&edit=1
