reactphp / socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
https://reactphp.org/socket/
MIT License
1.21k stars 157 forks source link

Fix invalid references in exception stack trace #284

Closed clue closed 2 years ago

clue commented 2 years ago

This changeset fixes any invalid references in the exception stack trace. This is a pretty nasty bug that has been introduced a few months ago with #270 that only happens on PHP 7+ when printing the exception trace ($exception->getTraceAsString()). This is now covered by the updated test suite and should work across all supported PHP versions.

Builds on top of https://github.com/clue/reactphp-socks/pull/104 and #270