php-src/tests/classes/bug27468.phpt

18 lines
329 B
Plaintext
Raw Normal View History

2004-03-02 21:03:24 +00:00
--TEST--
Bug #27468 (foreach in __destruct() causes segfault)
--FILE--
<?php
class foo {
function __destruct() {
foreach ($this->x as $x);
}
}
new foo();
echo 'OK';
?>
--EXPECTF--
2007-11-19 08:19:31 +00:00
Notice: Undefined property: foo::$x in %sbug27468.php on line 4
2007-01-10 16:00:31 +00:00
2004-03-02 21:03:24 +00:00
Warning: Invalid argument supplied for foreach() in %sbug27468.php on line 4
OK