mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
dcaf62f3d3
Let everything go through a common function, which fixes some consistency issues.
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: Method test::__destruct() cannot take arguments in %s on line %d
|