You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Language: Generator return type void accepted — must fatal at compile time (Zend/zend_compile.c) #11666
Functions that yield with a declared : void return type compile and run on VM; Zend/php-src rejects them at compile time with Generator return type must be a supertype of Generator, void given.
Verification: repro + GeneratorNeverReturnCompileTest + generator_void_return_compile.phpt — Zend and VM both exit 255 with Generator return type must be a supertype of Generator, void given.
Activity
PurHur commentedon Jun 25, 2026
claim: worker-lane-c — batch (issues #11666)
PurHur commentedon Jun 25, 2026
Merged via #11670.
Verification: repro +
GeneratorNeverReturnCompileTest+generator_void_return_compile.phpt— Zend and VM both exit 255 withGenerator return type must be a supertype of Generator, void given.Reject generator functions with :void return type at compile time. (#…