amphp / http-server

An advanced async HTTP server library for PHP, perfect for real-time apps and APIs with high concurrency demands.
https://amphp.org/http-server
MIT License
1.29k stars 100 forks source link

Call to a member function on null #336

Closed bileslav closed 2 years ago

bileslav commented 2 years ago

I unfortunately lost the logged exception in my buggy clipboard, but here's the gist: $reason on this line may be null under some circumstances. This will crash the server, as happened to me.

trowski commented 2 years ago

Fixed via https://github.com/amphp/http-server/commit/fef588a3e3eff4c524d62f7b7b0673f5a1c71579. Thanks for reporting!