Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89132 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79584 invoked from network); 9 Nov 2015 21:46:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2015 21:46:32 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:56266] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/09-13667-63411465 for ; Mon, 09 Nov 2015 16:46:31 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id A7A66E20D6; Mon, 9 Nov 2015 21:46:25 +0000 (GMT) Date: Mon, 9 Nov 2015 16:46:24 -0500 (EST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Niklas Keller cc: Dmitry Stogov , PHP Internals , bwoebi@php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] Null bytes in anonymous class names From: derick@php.net (Derick Rethans) 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