note 79344 added to control-structures.foreach
| From: | chris at deskpro dot com | Date: | Thu, 22 Nov 2007 00:46:33 +0000 |
| Subject: | note 79344 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132474@lists.php.net to get a copy of this message | ||
I would suggest that people making distributable scripts do not rely on foreach working on a copy.
People using some opcode caches (or script encoding like ioncube) appear to break this. While this
is a bug in the opcode cache, it might be prudent to not rely on this 'feature'.
----
Server IP: 87.124.64.96
Probable Submitter: 87.194.81.245
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- https://master.php.net/note/edit/79344
Del: integrated -- https://master.php.net/note/delete/79344/integrated
Del: useless -- https://master.php.net/note/delete/79344/useless
Del: bad code -- https://master.php.net/note/delete/79344/bad+code
Del: spam -- https://master.php.net/note/delete/79344/spam
Del: non-english -- https://master.php.net/note/delete/79344/non-english
Del: in docs -- https://master.php.net/note/delete/79344/in+docs
Del: other reasons-- https://master.php.net/note/delete/79344
Reject -- https://master.php.net/note/reject/79344
Search -- https://master.php.net/manage/user-notes.php