php-src/tests/classes/tostring_002.phpt
2018-10-14 12:07:20 -03:00

29 lines
260 B
PHP

--TEST--
ZE2 __toString() in __destruct
--FILE--
<?php
class Test
{
function __toString()
{
return "Hello\n";
}
function __destruct()
{
echo $this;
}
}
$o = new Test;
$o = NULL;
$o = new Test;
?>
====DONE====
--EXPECT--
Hello
====DONE====
Hello