Req #23022 [Csd]: Supported dereferencing array indeces on arbitrary expressions
| From: | felipe@php.net | Date: | Sat, 06 Oct 2012 13:03:09 +0000 |
| Subject: | Req #23022 [Csd]: Supported dereferencing array indeces on arbitrary expressions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173920@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=23022&edit=1
ID: 23022
Updated by: felipe@php.net
Reported by: mfischer@php.net
Summary: Supported dereferencing array indeces on arbitrary
expressions
Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: Any
PHP Version: 5CVS-2003-04-02 (dev)
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Such feature will be added in the next PHP (> 5.4) version. (i.e. currently it's implemented
in the master branch)
Previous Comments:
------------------------------------------------------------------------
[2012-10-06 12:44:31] hovik dot melikyan at gmail dot com
Can we please reopen this?
This hasn't been implemented in full, as array()[] and [][] still don't work.
It just boggles my mind why on Earth array dereferencing shouldn't be symmetric
and applicable to arbitrary subexpressions, like in (virtually) any other
programming language.
------------------------------------------------------------------------
[2010-10-27 17:14:16] cataphract@php.net
It appears marking as closed assigned it to me; this was actually implemented by Felipe Pena, see http://markmail.org/message/unplu5x3gjjjydwz
------------------------------------------------------------------------
[2010-10-27 17:11:55] cataphract@php.net
Marking as closed, as this has been implemented in trunk.
------------------------------------------------------------------------
[2010-02-13 12:43:48] aharvey@php.net
Closing, since for better or worse, this has since gone through the RFC process and been declined.
Cite: http://wiki.php.net/rfc/functionarraydereferencing
------------------------------------------------------------------------
[2010-02-12 21:37:28] zeb at zebhodge dot com
I'm baffled that this doesn't work in PHP like it does in so many other
languages.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=23022
--
Edit this bug report at https://bugs.php.net/bug.php?id=23022&edit=1