mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
15 lines
225 B
Plaintext
15 lines
225 B
Plaintext
|
--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
|