mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
fbbcf82ab7
And promote it to be fatal.
15 lines
225 B
PHP
15 lines
225 B
PHP
--TEST--
|
|
Testing __unset declaring as static
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
static function __unset($a) {
|
|
print "unset\n";
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method foo::__unset() cannot be static in %s on line %d
|