bool(false) <?php 

header
('Content-Type: text/html; charset=utf-8');
class 
user{

    public 
$username;
function 
__wakeup()
{
    echo 
'<br/>触发了__wakeup()';

}
function 
__destruct()
{
    echo 
'<br/>触发了 __destruct()';
}
}
$a=unserialize($_GET['user']);
var_dump($a);
highlight_file(__FILE__);
// O:4:"user":1:{s:8:"username";s:5:"admin";}
?>