mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
fbbcf82ab7
And promote it to be fatal.
15 lines
225 B
PHP
15 lines
225 B
PHP
--TEST--
|
|
Testing __set_state() declaration with wrong modifier
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {
|
|
function __set_state($array)
|
|
{
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method Foo::__set_state() must be static in %s on line %d
|