Bug #64227 [Asn]: current() function does not require a reference
| From: | laruence@php.net | Date: | Wed, 20 Feb 2013 13:39:09 +0000 |
| Subject: | Bug #64227 [Asn]: current() function does not require a reference | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9569@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64227&edit=1
ID: 64227
Updated by: laruence@php.net
Reported by: schmittjoh at gmail dot com
Summary: current() function does not require a reference
Status: Assigned
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: kriscraig
Block user comment: N
Private report: N
New Comment:
see https://github.com/php/php-src/pull/113
Previous Comments:
------------------------------------------------------------------------
[2013-02-20 12:27:43] schmittjoh at gmail dot com
@laruence, could you elaborate what that means?
------------------------------------------------------------------------
[2013-02-20 04:02:09] laruence@php.net
actually, it is not a bug, current declares prefer send_by_ref.
------------------------------------------------------------------------
[2013-02-19 18:30:45] kriscraig@php.net
Confirmed. Doc entry will need to be corrected.
------------------------------------------------------------------------
[2013-02-16 11:12:54] schmittjoh at gmail dot com
Description:
------------
The API documentation for `
current()` currently declares the first parameter to be a
reference. In fact however, it accepts any expression, not only references.
http://www.php.net/manual/en/function.current.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64227&edit=1