Closed
Description
Description
I suggest removing the null byte from an anonymous class name, which can be visible in stack traces. Precisely, it's about this line: https://github.com/php/php-src/blob/master/Zend/zend_compile.c#L9024
It causes problems in observability and testing, and requires workarounds. Example I found:
- Multiply/paratest@e8f9cd4
- Consider stripping null byte in frame name brendangregg/FlameGraph#280
- Remove NULL byte from class names, which cause problems when using phpdbg nette/tester#450
The change is trivial, but it would be BC break.