mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
15 lines
347 B
PHP
15 lines
347 B
PHP
--TEST--
|
|
Testing __set() declaration in abstract class with wrong modifier
|
|
--FILE--
|
|
<?php
|
|
|
|
abstract class b {
|
|
abstract protected function __set($a);
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d
|
|
|
|
Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d
|