summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39017.phpt
blob: 70204758d582f97015a8c08786836a78ad8573a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults)
--FILE--
<?php
class A {}
foreach(($a=(object)new A()) as $v);
var_dump($a); // UNKNOWN:0
?>
--EXPECTF--
object(A)#%d (0) {
}