[PHP-DEV] Re: Add leading backslash to enum and class names in var_export

2022-04-14 Thread Ilija Tovilo
Hi everyone > Marco Pivetta created a PR that adds leading backslash to all class or > enum names of var_export. Adding a backslash will make the code work > both inside or outside namespaces. > https://github.com/php/php-src/pull/8233 > > To avoid disruption, I'm proposing to merge this into PHP

Re: [PHP-DEV] Re: Add leading backslash to enum and class names in var_export

2022-03-31 Thread Sara Golemon
> On Mar 31, 2022, at 11:03, Christoph M. Becker wrote: > > On 31.03.2022 at 17:45, Ilija Tovilo wrote: > >> We've had two bug reports for var_export not working for enums. The >> reason for that is that var_export does not add a leading backslash to >> names of enums. This will cause them to

[PHP-DEV] Re: Add leading backslash to enum and class names in var_export

2022-03-31 Thread Christoph M. Becker
On 31.03.2022 at 17:45, Ilija Tovilo wrote: > We've had two bug reports for var_export not working for enums. The > reason for that is that var_export does not add a leading backslash to > names of enums. This will cause them to be resolved as > `\CurrentNamespace\EnumNamespace\EnumName` instead o