<?php
header
('Content-Type: text/html; charset=utf-8');
class 
test {
    public 
$p=1;
    function 
__destruct()
{
        echo 
'flag:{_Sdw-_wds s}';
    }
}
if (isset(
$_GET['input'])) {
    
$a unserialize($_GET['input']);
    
//抛出错误强制终止程序
   
throw new Exception('stop');
}
// $a = new test();
// echo serialize($a);
// O:4:"test":1:{s:1:"p";i:1;}
// print_r(unserialize('a:2:{i:0;O:4:"test":0:{}i:1;N;}'));
// echo serialize(array(new test(),'2'));
// a:2:{i:0;O:4:"test":1:{s:1:"p";i:1;}i:0;N;}
highlight_file(__FILE__);
?>