1--TEST--
2foreach() with foreach($o->mthd()->arr)
3--FILE--
4<?php
5class Test {
6   public $a = array(1,2,3,4,5); // removed, crash too
7   function c() {
8      return new Test();
9   }
10
11}
12$obj = new Test();
13foreach ($obj->c()->a as $value) {
14    print "$value\n";
15}
16
17?>
18===DONE===
19--EXPECT--
201
212
223
234
245
25===DONE===
26