Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87024 invoked from network); 9 Nov 2015 23:52:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2015 23:52:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.217.178 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.217.178 mail-lb0-f178.google.com Received: from [209.85.217.178] ([209.85.217.178:35212] helo=mail-lb0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/D9-13667-AA131465 for ; Mon, 09 Nov 2015 18:52:11 -0500 Received: by lbces9 with SMTP id es9so40687172lbc.2 for ; Mon, 09 Nov 2015 15:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=kKXHS1dbt+J2UJ+0sXagFGtvgMcihctNw5DpeY6IHZg=; b=m+HkQycrfrZLL5+aMOiN6q3M0cZo2iwI7ORySQ/M6TPditMb3E780zi7U3Bih7GKf4 A0VM5DOvdgsTr/SPESCBk5ambH+ixNFd30/KBnHN/V7nZzEk4D1FzUzt5eRcyzTgPAOR S3W8q2unyJD+6fBPTzzqikQmmrJao8/tVvOZA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=kKXHS1dbt+J2UJ+0sXagFGtvgMcihctNw5DpeY6IHZg=; b=Y2i6vuvQXdU1mM2TJET57brNfgI7pARsnyaS4poScqwcIYHdGGgepecDpaoEC8I9Vx qpgfwwOB3CKcvkUffmeDbZ4MkfkzjlEolKItdUbM2oG7yxs22fdMa+FiSEVrd8OzVpbQ waUoZ5Mlns5RMeMrySg8NpZB/GHwSbBTBD9J1LlTV+pBLChnX0wJ/c6W1VKlCHTueiCV 3KBqUlDqtXYhvTHVJKTMffr9R+yV+CcysQN7T+3DJ6B0xc3bJGd0X4CRiqUGe/BLa4Ni QaSXQdLf8mLcZCwFIS6sOtABO3KfIN8DhlDIRYCJsfjg5h/z32K2wbxPO9ljKP5zFgh+ 1cKg== X-Gm-Message-State: ALoCoQmRwql6zCzn1WHchlVal2DKVPt3M4khmGr0rfsGF7Al5TzQAwGbI8i8/3kbs3s9H2mZ4T67 X-Received: by 10.112.133.42 with SMTP id oz10mr294493lbb.92.1447113127659; Mon, 09 Nov 2015 15:52:07 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.25.24.212 with HTTP; Mon, 9 Nov 2015 15:51:47 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Nov 2015 15:51:47 -0800 X-Google-Sender-Auth: RQC3xaAogT2VxlaTmVyp16_W6lo Message-ID: To: Derick Rethans Cc: Niklas Keller , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Null bytes in anonymous class names From: aharvey@php.net (Adam Harvey) On 9 November 2015 at 13:46, Derick Rethans wrote: > 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. Just to add another voice: +1 for this (or something similar). Having the \0 can be worked around, but just not having to deal with it at all is a hell of a lot easier for those of us working on third party tooling. Adam