mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
25 lines
287 B
Plaintext
25 lines
287 B
Plaintext
|
--TEST--
|
||
|
Destructors and echo
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Test
|
||
|
{
|
||
|
function __construct() {
|
||
|
echo __METHOD__ . "\n";
|
||
|
}
|
||
|
|
||
|
function __destruct() {
|
||
|
echo __METHOD__ . "\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$o = new Test;
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
Test::__construct
|
||
|
===DONE===
|
||
|
Test::__destruct
|