|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-11-28 22:17 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2018-11-28 22:17 UTC] requinix@php.net
[2018-11-28 22:31 UTC] kalle@php.net
-Status: Not a bug
+Status: Re-Opened
[2018-11-28 22:31 UTC] kalle@php.net
[2018-11-28 23:05 UTC] cmb@php.net
[2018-11-28 23:07 UTC] spam2 at rhsoft dot net
[2018-11-28 23:08 UTC] nikic@php.net
-Status: Re-Opened
+Status: Duplicate
[2018-11-28 23:08 UTC] nikic@php.net
[2018-11-28 23:15 UTC] requinix@php.net
[2018-11-28 23:25 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
Description: ------------ When a generator calls itself (what an idea), PHP crashes. Test script: --------------- <?php function generator($n) { foreach(generator($n) as $l) { yield $l; } } foreach(generator(10) as $l) { print $l; } // Also https://3v4l.org/8FXB3 Expected result: ---------------- No crash, please. Can I ask for recursive generators? No? Well, A warning or a nice fail will do. Actual result: -------------- Segmentation fault: 11 On OSX Process exited with code 139. On linux.