Re: svn: /phpdoc/en/trunk/reference/array/functions/ current.xml
| From: | Karoly Negyesi | Date: | Sun, 17 Apr 2011 08:50:02 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/array/functions/ current.xml | ||
| References: | 1 2 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-7956@lists.php.net to get a copy of this message | ||
Is there anything practical where this matter? I mean
function ref(&$a) {
}
current(array());
ref(array());
that ref() blows up but current() does not. current does not change
any array values or array pointer.
So, ok, sure rf reports as per reference but ...?
On Sun, Apr 17, 2011 at 1:32 AM, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> On Mon, Jan 10, 2011 at 23:07, Karoly Negyesi <chx@php.net> wrote:
>> chx Mon, 10 Jan 2011 22:07:01 +0000
>>
>> Revision:
>> http://svn.php.net/viewvc?view=revision&revision=307359
>>
>> Log:
>> current does not take the array by reference
>
>
> Uhh.. Yes it does:
>
> bjori@jessica:~$ php --rf current
> Function [ <internal:standard> function current ] {
>
> - Parameters [1] {
> Parameter #0 [ <required> &$arg ]
> }
> }
>