Re: RFC: Anonymous Classes
| From: | Joe Watkins | Date: | Mon, 23 Sep 2013 17:22:46 +0000 |
| Subject: | Re: RFC: Anonymous Classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69290@lists.php.net to get a copy of this message | ||
On 09/23/2013 07:39 AM, Joe Watkins wrote:
Morning All,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 Joehttps://wiki.php.net/rfc/anonymous_classesI'd like to hear thoughts regarding the addition of anonymousclasses, patch included. Cheers Joe