[IGN-5604] scoping weirdness after call to system.report functions

Is there a range of affected versions? Or has this been there forever?