Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42195 invoked from network); 9 Nov 2015 16:49:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2015 16:49:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:38522] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/93-13667-C7EC0465 for ; Mon, 09 Nov 2015 11:49:00 -0500 Received: by wmec201 with SMTP id c201so78641765wme.1 for ; Mon, 09 Nov 2015 08:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dTe+ig9XmW1queRZpGYf0npVshvOgUSFkCBsuvo5O0U=; b=GKmICZBDLleNJeXLT2AePlvfFOLD6pXZ9EqM9FKTqlYZ8437BZ7FD2l2rUTBifBmmQ nNp29nWeBaQRmDuHHrS4uR4HDUZTrnL+Q1wpK4SQu6zFa+WmZnzWbbpElb3/G+VufcCv 29ahrjsOXe0o3lzFIrW9vX3WCZqziGjDathheqp/SeebvUz8sLBvKIOAKUSgXUXeeCAO uMaGOFuM39PHrUnSLJ54PLu019AybNT8Qf9O1WQT4bDi36lTS35aTAjJeD/RuBcWqIQA uhcBF63BGGGjYctxwVIm9Q+3y2Nm6rg91x8AEWf/bQXHGfffWFE2PNAakAPfKe+asC0h l78w== MIME-Version: 1.0 X-Received: by 10.194.179.35 with SMTP id dd3mr9823837wjc.125.1447087737486; Mon, 09 Nov 2015 08:48:57 -0800 (PST) Received: by 10.28.145.200 with HTTP; Mon, 9 Nov 2015 08:48:57 -0800 (PST) In-Reply-To: References: <563B6ED1.1030601@gmail.com> Date: Mon, 9 Nov 2015 16:48:57 +0000 Message-ID: To: Steven Hilder Cc: PHP Internals , Niklas Keller , Rowan Collins , Joe Watkins , Dmitry Stogov Content-Type: multipart/alternative; boundary=089e01419d568d45c205241e5ebb Subject: Re: [PHP-DEV] Null bytes in anonymous class names From: leight@gmail.com (Leigh) --089e01419d568d45c205241e5ebb Content-Type: text/plain; charset=UTF-8 On 9 November 2015 at 15:27, Steven Hilder > > > So, I prepared a patch for `get_class()` and `ReflectionClass::getName()`, > which in my view should behave the same way as `var_dump()` etc., but I've > now realised that ignoring the unique suffix from the class name will break > functionality that is otherwise desirable: > Can you share your patch? It should be possible to return the sanitised name without removing it internally.(would have to cover the get_parent_class and getParentClass versions too, and have a quick audit of other places class names can be spat out.) Can we at least get the memory address hidden (non-debug builds only perhaps? - var_dump appends a #n why not just use this number.) --089e01419d568d45c205241e5ebb--