summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_003.phpt
blob: be354ecc304943a43048ee07d3ccb10a1e8bfbda (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--
Warning: The magic method __unset() must have public visibility and cannot be static in %s on line %d