mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
34c460f329
Fix Bug #79521. Closes GH-5462.
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()
|
|
{
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: The magic method Foo::__set_state() must be static in %s on line %d
|