Re: Null bytes in anonymous class names
| From: | Derick Rethans | Date: | Mon, 09 Nov 2015 21:46:24 +0000 |
| Subject: | Re: Null bytes in anonymous class names | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89132@lists.php.net to get a copy of this message | ||
On Thu, 5 Nov 2015, Niklas Keller wrote:
> I discovered today that anonymous class names contain a null byte
> right after "class@anonymous". I don't think class names should
> contain non-printable characters.
>
> How about removing that null byte?
I would suggest replacing it with something else. As I am making this
work for Xdebug, I really need to ship the full name to the IDE so that
they can later do look-ups on anonymous class properties, and with the
\0 the IDEs seem to fuck this up. I suggest using another @ instead of
the \0.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine