Req #8595 [Opn->Wfx]: More effective parsing of list() (+other)
| From: | ajf@php.net | Date: | Thu, 08 Jan 2015 22:13:46 +0000 |
| Subject: | Req #8595 [Opn->Wfx]: More effective parsing of list() (+other) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189754@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=8595&edit=1
ID: 8595
Updated by: ajf@php.net
Reported by: antti dot boman at helsinki dot fi
Summary: More effective parsing of list() (+other)
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
This isn't really possible. It'd be nice, but not really doable except in limited cases
with references. I also think code written like this might be confusing.
Closing as wontfix.
Previous Comments:
------------------------------------------------------------------------
[2001-06-22 20:20:40] david@php.net
see also #8447
------------------------------------------------------------------------
[2001-01-08 09:26:49] antti dot boman at helsinki dot fi
I'd like to use list() for other things that assigning to, ie. this works:
list($a,$b)=$c;
But the following example doesn't work (among others):
$str="I think this is a stupid example, but it should show what I want to know";
preg_match( "/(this) is a (stupid) example/", $str, list($whole,$first,$second) );
Somebody generalized this feature request as 'more effective parser'.
Otherwise, thanks a lot for a good job!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=8595&edit=1