Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78836 invoked from network); 23 Sep 2013 18:05:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2013 18:05:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=robin@kingsquare.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robin@kingsquare.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kingsquare.nl from 141.138.142.202 cause and error) X-PHP-List-Original-Sender: robin@kingsquare.nl X-Host-Fingerprint: 141.138.142.202 spring.kingsquare.nl Linux 2.6 Received: from [141.138.142.202] ([141.138.142.202:54211] helo=spring.kingsquare.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/00-12998-AE280425 for ; Mon, 23 Sep 2013 14:05:31 -0400 X-No-Relay: not in my network Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by spring.kingsquare.nl (Postfix) with ESMTPSA id A085177C002 for ; Mon, 23 Sep 2013 20:05:26 +0200 (CEST) Received: by mail-vc0-f182.google.com with SMTP id hf12so2521337vcb.27 for ; Mon, 23 Sep 2013 11:05:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jezdBlNcdqrK5ug/uRjBKZuaopilML+Jim1XfUttAOM=; b=Tcgz3txuMj6x5Zo235c2rLjux+wKWeOY9K3KPl3b64UO4Dsj/J8MY55JWD2MMdRMb3 DSKPNzaieHzhGU3+JXuv2PYQg04rPs1oC4Q4wm72YS+2GVJM+8ZxHHvqdy98+kFGwnbv GS+9AkaOtrJ2MQDRFBUM6+HoBdNUzUTXLGwRcoyhchITeKEdn7bNQ6OhIuzcwnHqzyz8 04V02DKoQ/quyJsi5oPyDdFQGrckCbjPyUBfjVXQ/nRtSzypzjw2mG0Gu3NYT3rdxV8m zH896ryU2gzqPZDg/IfV2IBSPHLWfSDYZ9VtlnekrUfi2Y8E2N2ZMGPGlIb6GQaK+Aak GBnw== X-Received: by 10.58.74.38 with SMTP id q6mr23704063vev.9.1379959525184; Mon, 23 Sep 2013 11:05:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.221.2.201 with HTTP; Mon, 23 Sep 2013 11:05:05 -0700 (PDT) In-Reply-To: <6D.71.03575.86970425@pb1.pair.com> References: <6D.71.03575.86970425@pb1.pair.com> Date: Mon, 23 Sep 2013 20:05:05 +0200 Message-ID: To: Joe Watkins Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bacbedc4d9ef704e710dd19 Subject: Re: [PHP-DEV] Re: RFC: Anonymous Classes From: robin@kingsquare.nl ("Kingsquare.nl - Robin Speekenbrink") --047d7bacbedc4d9ef704e710dd19 Content-Type: text/plain; charset=UTF-8 Everyone, As a lurker i rarely have anthing to say, but this time i'd like to make an exception: I see some usability for this type of usage, but would like to disagree on the extra class... My usage would be more in line with JSON way of passing around objects... But i'd hate to see yet another new class type and kind of feel the StdClass would've been more logical... The reasons for this imho is that the StdClass is the one-for-all object without anything that's already there... (it's not like anonymous functions are something different than regular functions?) As for actual need: personally i can easily live without, but then again: we the influx of JSON-like notation / ubiquity this might make a logical follow up.. ? Met vriendelijke groet, Robin Speekenbrink Kingsquare BV 2013/9/23 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7bacbedc4d9ef704e710dd19--