From 2468f47572fb2bc3b414697c1884acb378c609cb Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Thu, 3 Sep 2009 06:49:15 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287977 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/migration5.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/appendices/migration5.xml b/appendices/migration5.xml index 6c15b0df72..10ebe9f266 100644 --- a/appendices/migration5.xml +++ b/appendices/migration5.xml @@ -152,6 +152,17 @@ A.php and a.php include the file just once. + + + 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. + +