]> granicus.if.org Git - php/commit
Forbid yield from in by-reference generators
authorNikita Popov <nikic@php.net>
Fri, 12 Feb 2016 16:55:29 +0000 (17:55 +0100)
committerNikita Popov <nikic@php.net>
Fri, 12 Feb 2016 16:55:29 +0000 (17:55 +0100)
commitccc06e252bdf4c54cb2c96dbcab9a2aeb933181c
treefea7143798fc2f5c112bdae8a03bb8789f09945d
parent9cebdc5d4741c9a3a847ca473fd1742c75ca7740
Forbid yield from in by-reference generators

The current yield from implementation doesn't support by-ref
yields. It's likely not worthwhile to actually implement this,
but we should at least keep the door open for the future by
issuing a compile error.

Refs bug #71252.
Zend/tests/generators/yield_from_by_reference.phpt [new file with mode: 0644]
Zend/zend_compile.c