Closed gliese436-b closed 4 years ago
use via response, this is bug of laravel (not laravel-swoole) Example: response()->cookie() or response()->header()
As @mxp100 said, after start using swoole you need to use Laravel's response, request, etc.
Check: https://github.com/swooletw/laravel-swoole/wiki/Z1.-Notices
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
php -v
andphp --ri swoole
)PHP:7.3.2 Swoole:4.4.8
Laravel:6.2
Which release version of this package are you using?
"swooletw/laravel-swoole": "^2.6"
What did you do? If possible, provide a recipe for reproducing the error.
setcookie('token',null,time() - 1,'/','.test.cn');
OR
header("Location:https://xxx.comt");
What did you expect to see?
What did you see instead?
laravel.ERROR: Cannot modify header information - headers already sent