Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76083 invoked from network); 23 Sep 2013 17:24:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2013 17:24:57 -0000 X-Host-Fingerprint: 80.4.21.210 cpc22-asfd3-2-0-cust209.1-2.cable.virginmedia.com Received: from [80.4.21.210] ([80.4.21.210:20720] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/71-03575-86970425 for ; Mon, 23 Sep 2013 13:24:56 -0400 Message-ID: <6D.71.03575.86970425@pb1.pair.com> To: internals@lists.php.net Date: Mon, 23 Sep 2013 18:22:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.4.21.210 Subject: Re: RFC: Anonymous Classes From: krakjoe@php.net (Joe Watkins) On 09/23/2013 07:39 AM, Joe Watkins wrote: > Morning All, > > https://wiki.php.net/rfc/anonymous_classes > > I'd like to hear thoughts regarding the addition of anonymous > classes, patch included. > > Cheers > Joe Serialization: As I have said, serialization does work, and unserialization does work ... Classes do have unique names, so as long as the entry is present upon unserialize you will get the object you expect ... if the entry is not present unserialization will fail silently. The same kind of thing can happen where you have declared a class based on some predicate, whose value has changed upon unserialize and so the entry is not present ... I'm not sure it is necessary to force any particular behaviour for serialization, it depends entirely on the application whether or not the entry is present upon serialization, it should be left down to the programmer. Cheers Joe