php-src/tests/classes/tostring_002.phpt
2020-02-03 22:52:20 +01:00

30 lines
290 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