mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
15 lines
263 B
Plaintext
15 lines
263 B
Plaintext
|
--TEST--
|
||
|
Testing __unset() with protected visibility
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class foo {
|
||
|
protected function __unset($a) {
|
||
|
print "unset\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: The magic method __unset() must have public visibility and can not be static in %s on line %d
|