- unserialize: documentation ( source)
<?php
class Wakeup
{
public $b;
public $e;
function __construct()
{
$this->b = new B;
$this->e = new E;
}
}
class B {
function __wakeup()
{
echo 'B::__wakeup';
// throw new ReactException;
// throw new ReactExceptionB;
}
}
class D {
}
class E extends D {
function __wakeup()
{
echo 'E::__wakeup';
}
}
unserialize('O:6:"Wakeup":2:{s:1:"b";O:1:"B":0:{}s:1:"e";O:1:"E":0:{}}');