use EasySwoole\Http\AbstractInterface\Controller;
use EasySwoole\Template\Render;
class Index extends Controller
{
function index()
{
$this->response()->write(Render::getInstance()->render('index.tpl',[
'user'=>'easyswoole',
'time'=>time()
]));
}
function reload(){
Render::getInstance()->restartWorker();
$this->response()->write(1);
}
}`
访问index/reload 报以下异常
[2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#7[pid=4490] abnormal exit, status=0, signal=11
A bug occurred in Swoole-v4.4.16, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:
[2020-06-06 16:27:01][debug][error]:[Argument 1 passed to EasySwoole\Http\Response::write() must be of the type string, null given, called in /www/wwwroot/cxy.qcq.cc/App/HttpController/Index/Base.php on line 201 at file:/www/wwwroot/cxy.qcq.cc/vendor/easyswoole/http/src/Response.php line:76]
[2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#6[pid=4489] abnormal exit, status=0, signal=11
A bug occurred in Swoole-v4.4.16, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:
[2020-06-06 16:27:01 @6330.0] WARNING swSignalfd_setup: signalfd has been created
[2020-06-06 16:27:01 @6331.0] WARNING swSignalfd_setup: signalfd has been created
`<?php namespace App\HttpController;
use EasySwoole\Http\AbstractInterface\Controller; use EasySwoole\Template\Render;
class Index extends Controller {
}` 访问index/reload 报以下异常 [2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#7[pid=4490] abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.4.16, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports:
[2020-06-06 16:27:01][debug][error]:[Argument 1 passed to EasySwoole\Http\Response::write() must be of the type string, null given, called in /www/wwwroot/cxy.qcq.cc/App/HttpController/Index/Base.php on line 201 at file:/www/wwwroot/cxy.qcq.cc/vendor/easyswoole/http/src/Response.php line:76] [2020-06-06 16:27:01 $4478.0] WARNING swManager_check_exit_status: worker#6[pid=4489] abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.4.16, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports:
[2020-06-06 16:27:01 @6330.0] WARNING swSignalfd_setup: signalfd has been created [2020-06-06 16:27:01 @6331.0] WARNING swSignalfd_setup: signalfd has been created