Bug #64227 [Asn->Nab]: current() function does not require a reference

From: Date: Thu, 29 May 2014 09:51:39 +0000
Subject: Bug #64227 [Asn->Nab]: current() function does not require a reference
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11251@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: kriscraig@php.net Reported by: schmittjoh at gmail dot com Summary: current() function does not require a reference -Status: Assigned +Status: Not a bug Type: Bug Package: Documentation problem PHP Version: Irrelevant Assigned To: kriscraig Block user comment: N Private report: N New Comment: No feedback for over a year. Laruence says it's not a bug. Previous Comments: ------------------------------------------------------------------------ [2013-02-20 13:39:09] laruence@php.net see https://github.com/php/php-src/pull/113 ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#11251) next »