crazywhalecc d79edcef53 fix: add recursion guard to prevent 100% CPU when STDOUT/STDERR is broken
When the terminal (IDE) is closed without stopping the framework first,
the PTY is destroyed and STDOUT/STDERR become broken file descriptors.
Any subsequent log call via echo/fwrite fails with E_WARNING, the error
handler catches it and calls the logger again, creating a recursive loop
that consumes 100% CPU.

Changes:
- Add static $in_log recursion guard flag to ConsoleLogger
- Wrap log output (echo/fwrite/fflush) with the guard and @ suppression
- Bump version from 1.1.6 to 1.1.7
2026-06-17 14:46:27 +08:00
2022-05-13 17:18:26 +08:00
2022-05-15 00:39:48 +08:00
2022-05-12 20:27:01 +08:00
2022-05-12 20:27:01 +08:00
2022-05-12 19:23:27 +08:00
2022-05-13 18:12:25 +08:00
2022-05-15 00:39:48 +08:00
2022-05-12 19:23:27 +08:00

zhamao-logger

Another Console Logger for CLI Applications

Description
Another Console Logger for CLI Applications
Readme Apache-2.0 286 KiB
Languages
PHP 100%