mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
13 lines
225 B
Plaintext
13 lines
225 B
Plaintext
|
--TEST--
|
||
|
Bug #36303 (foreach on error_zval produces segfault)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$x="test";
|
||
|
foreach($x->a->b as &$v) {
|
||
|
}
|
||
|
echo "ok\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: Invalid argument supplied for foreach() in %sbug36303.php on line 3
|
||
|
ok
|