1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/Zend/tests/magic_methods_004.phpt

15 lines
262 B
PHP

--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 cannot be static in %s on line %d