Req #73938 [Opn]: PHP7 foreach internal array pointer

From: Date: Sun, 15 Jan 2017 02:20:14 +0000
Subject: Req #73938 [Opn]: PHP7 foreach internal array pointer
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14349@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73938&edit=1 ID: 73938 User updated by: tristanlbailey at sgsoftware dot com dot au Reported by: tristanlbailey at sgsoftware dot com dot au Summary: PHP7 foreach internal array pointer Status: Open Type: Feature/Change Request Package: Documentation problem PHP Version: 7.0.14 Block user comment: N Private report: N New Comment: Specifically, the current() function will always return int(0) when used in foreach control structures. Previous Comments: ------------------------------------------------------------------------ [2017-01-15 02:16:55] tristanlbailey at sgsoftware dot com dot au Description: ------------ --- From manual page: http://www.php.net/function.current --- PHP 7 no longer modifies the internal array pointer in foreach control structures. This should be mentioned somewhere on this page. http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.foreach.array-pointer ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73938&edit=1

« previous php.doc.bugs (#14349) next »