mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
25 lines
291 B
PHP
Executable File
25 lines
291 B
PHP
Executable File
--TEST--
|
|
ZE2 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
|