summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_008.phpt
blob: b3f73624939b25b017703ab01ed513ccab8b0e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing __set implementation with wrong declaration
--FILE--
<?php

abstract class b {
	abstract function __set($a, $b);
}

class a extends b {
	private function __set($a, $b) {
	}
}

?>
--EXPECTF--
Fatal error: The magic method __set() must have public visibility and can not be static in %s on line %d