summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41117_1.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2012-05-30 02:44:06 +0200
committerNikita Popov <nikic@php.net>2012-05-30 02:44:06 +0200
commitbc08c2cf9485e20fea0eef7ab149cefdf9a3662e (patch)
tree902abf875287ba8842600cc5e84557ee30bfc2f4 /Zend/tests/bug41117_1.phpt
parent72a91d08e7d70d5524feb6cc7c8e32b3bd68f1df (diff)
downloadphp-git-bc08c2cf9485e20fea0eef7ab149cefdf9a3662e.tar.gz
Add support for yielding keys
Keys are yielded using the yield $key => $value syntax. Currently this is implemented as a statement only and not as an expression, because conflicts arise considering nesting and use in arrays: yield yield $a => $b; // could be either yield (yield $a) => $b; // or yield (yield $a => $b); Once I find some way to resolve these conflicts this should be available as an expression too. Also the key yielding code is rather copy-and-past-y for the value yielding code, so that should be factored out.
Diffstat (limited to 'Zend/tests/bug41117_1.phpt')
0 files changed, 0 insertions, 0 deletions