mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
15 lines
230 B
PHP
15 lines
230 B
PHP
--TEST--
|
|
errmsg: __destruct() cannot take arguments
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
function __destruct($var) {
|
|
}
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Destructor test::__destruct() cannot take arguments in %s on line %d
|