Skip to content

Remove null byte from anonymous class name #18290

Closed
@jorgsowa

Description

@jorgsowa

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:

The change is trivial, but it would be BC break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions