mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
15 lines
247 B
PHP
15 lines
247 B
PHP
--TEST--
|
|
Testing __unset declaring as static
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
static function __unset($a) {
|
|
print "unset\n";
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method __unset() must have public visibility and cannot be static in %s on line %d
|