mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
12 lines
206 B
PHP
12 lines
206 B
PHP
--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) {
|
|
}
|