
The following code is kind of "super-compressed" from real code.
1) a ForEach() with an array. OK
2) behind that an unrelated ForEach with a list. Abend =

Delete 1st foreach, or skip it (incl it's continue): 2nd ForEach is OK!
It seems "relicts" of array-ForEach destroy following list-ForEach!

Code: Select all
// Bug in ForEach(list) after ForEach(array)
step;
$agnr[0] = 'YYY';
ForEach($agnr as $nr, 'e') { continue; }
$cmd = "aa<crlf>bb";
ForEach($cmd, $cgrp, <crlf>, 'e') { Continue; }