summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_003.phpt
blob: c963acc4628c5a0b2b18b3da645a39497df34556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Testing __unset declaring as static
--FILE--
<?php

class foo {	
	static 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