mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
7ce8c5ad89
Closes GH-5465
15 lines
247 B
PHP
15 lines
247 B
PHP
--TEST--
|
|
Testing __unset with private visibility
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
private function __unset($a) {
|
|
print "unset\n";
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method foo::__unset() must have public visibility in %s on line %d
|