blob: 61c4fa0a29f587250a84d98ddee5393650e5d312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--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--
Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d
Fatal error: Access level to a::__set() must be public (as in class b) in %s on line %d
|