svn: /phpdoc/en/trunk/appendices/ migration5.xml
| From: | Torben Wilson | Date: | Thu, 03 Sep 2009 06:49:15 +0000 |
| Subject: | svn: /phpdoc/en/trunk/appendices/ migration5.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4820@lists.php.net to get a copy of this message | ||
torben Thu, 03 Sep 2009 06:49:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287977
Log:
Noted that the array pointer is no longer reset for array accesses
made within a function when the array has been passed to the function.
Addresses bug #46535.
--This line,
and those below, will be ignored--
M migration5.xml
Bug: http://bugs.php.net/46535 (Open) arrays internal
pointer saved in function
Changed paths:
U phpdoc/en/trunk/appendices/migration5.xml
Modified: phpdoc/en/trunk/appendices/migration5.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration5.xml 2009-09-03 04:52:57 UTC (rev 287976)
+++ phpdoc/en/trunk/appendices/migration5.xml 2009-09-03 06:49:15 UTC (rev 287977)
@@ -152,6 +152,17 @@
A.php and a.php include the file just once.
</simpara>
</listitem>
+ <listitem>
+ <simpara>
+ Passing an array to a function by value no longer resets the
+ array's internal pointer for array accesses made within the
+ function. In other words, in PHP 4 when you passed an array to a
+ function, its internal pointer inside the function would be
+ reset, while in PHP 5, when you pass an array to a function, its
+ array pointer within the function will be wherever it was when
+ the array was passed to the function.
+ </simpara>
+ </listitem>
</itemizedlist>
<para>