1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 04:32:19 +02:00
Files
archived-php-src/Zend/tests/magic_methods_008.phpt
Nikita Popov d1e5006c14 Fix lineno for more inheritance errors
And also include explicit linenos in tests.
2019-03-27 13:02:28 +01:00

20 lines
396 B
PHP

--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 8