Please answer these questions before submitting your issue.
var_dump(serialize(new Exception("fasfasdfad")));#普通环境下执行正常
#http事件下swoole 抛出异常 is not allowed
$server->on('request', function ($request, $response){serialize(new Exception("fasfasdfad"));@$response->end("啊哈哈哈哈");});
一旦放到 http事件下 马上抛出异常
Serialization of 'Swoole\Http\Request' is not allowed
swoole扩展不支持序列化的对象
不可序列化输出警告/不可序列化不输出警告/不可序列化抛出异常
由开发者控制这样?
What did you do? If possible, provide a simple script for reproducing the error.
Serialization of 'Swoole\Http\Request' is not allowed
What version of Swoole are you using (show your php --ri swoole)?
5.1.3
Please answer these questions before submitting your issue.
Serialization of 'Swoole\Http\Request' is not allowed
php --ri swoole
)? 5.1.3