mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +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
|