mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +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) {
|
|
}
|