|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64227 current() function does not require a reference
Submitted: 2013-02-16 11:12 UTC Modified: 2014-05-29 09:51 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: schmittjoh at gmail dot com Assigned: kriscraig (profile)
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-02-16 11:12 UTC] schmittjoh at gmail dot com
The API documentation for ``current()`` currently declares the first parameter to be a reference. In fact however, it accepts any expression, not only references.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-19 18:30 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kriscraig
 [2013-02-19 18:30 UTC]
Confirmed.  Doc entry will need to be corrected.
 [2013-02-20 04:02 UTC]
actually, it is not a bug, current declares prefer send_by_ref.
 [2013-02-20 12:27 UTC] schmittjoh at gmail dot com
@laruence, could you elaborate what that means?
 [2014-05-29 09:51 UTC]
-Status: Assigned +Status: Not a bug
 [2014-05-29 09:51 UTC]
No feedback for over a year.  Laruence says it's not a bug.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 19:03:39 2021 UTC