Bug #67782 [NEW]: Internal Cursors

From: Date: Tue, 05 Aug 2014 17:11:59 +0000
Subject: Bug #67782 [NEW]: Internal Cursors
Groups: php.standards 
Request: Send a blank email to standards-+get-337@lists.php.net to get a copy of this message
From: joelm Operating system: PHP version: Irrelevant Package: PHP Language Specification Bug Type: Bug Bug description:Internal Cursors Description: ------------ https://github.com/php/php-langspec/blob/master/spec/12-arrays.md#arrays The concept of an array's internal cursor or an object's internal cursor is never mentioned. The state of the internal cursor of an array or object can be witnessed via the current(), key(), next(), prev(), reset(), end(), and each() library functions. While it's technically library functions that expose the state of the cursor to the programmer, you can find code deep in the core array/object implementation of PHP5 that deals with and maintains internal cursors. Also, internal cursors get mentioned in various parts of the php.net documentation, including the documentation for "foreach", so internal cursors are arguably a language feature. -- Edit bug report at https://bugs.php.net/bug.php?id=67782&edit=1 --

« previous php.standards (#337) next »