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