mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
15 lines
304 B
PHP
Executable File
15 lines
304 B
PHP
Executable File
--TEST--
|
|
Bug #36303 (foreach on error_zval produces segfault)
|
|
--FILE--
|
|
<?php
|
|
$x="test";
|
|
foreach($x->a->b as &$v) {
|
|
}
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Attempt to modify property of non-object in %sbug36303.php on line 3
|
|
|
|
Warning: Invalid argument supplied for foreach() in %sbug36303.php on line 3
|
|
ok
|