Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68310 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64966 invoked from network); 25 Jul 2013 20:02:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2013 20:02:01 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.50 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.50 mail-qa0-f50.google.com Received: from [209.85.216.50] ([209.85.216.50:36723] helo=mail-qa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/48-05798-83481F15 for ; Thu, 25 Jul 2013 16:02:00 -0400 Received: by mail-qa0-f50.google.com with SMTP id f14so20448qak.16 for ; Thu, 25 Jul 2013 13:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=GGbdnucwAhKeATIaM3TNNi6W8BpVqPQGoK2ucwJbtzc=; b=ubYzarbcqIWVfOrujDQVAdT952HMHppxPmnbu/ALWiXeHUipkaMd8paM/iscOPVX+1 EFGFxj+EE+55Zw0+DSdQxLzWhB3ycPYg7Ira2Ie0835M7gpCbajtT6LV+9QLyHh07VKC WbGDlCIC3m2G0j3LW3EYxj9ZBMFVWLJGAnwE2OyD3smyg0973CI/xm+9sdp+QlZjahjp BoODAyE/L8KbJMkaPzfPCWD9z0XBGN9FdkzIL8iP2dS79p1fdQmgtaZfxf9jgP5zE10a K3gUV9cDhi4u6jEpqyOb7RSXQjb6qNhkJQQBvkUkx0zQp/sOhrDfMhy/yDCS4p7qhXmB iACA== MIME-Version: 1.0 X-Received: by 10.224.147.206 with SMTP id m14mr19044859qav.111.1374782517844; Thu, 25 Jul 2013 13:01:57 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.178.69 with HTTP; Thu, 25 Jul 2013 13:01:57 -0700 (PDT) In-Reply-To: <51F182D2.7030007@sugarcrm.com> References: <51F177E7.3020103@sugarcrm.com> <51F182D2.7030007@sugarcrm.com> Date: Thu, 25 Jul 2013 21:01:57 +0100 X-Google-Sender-Auth: pe5yxbFO0Eu_K_pN_BRYPYUMre4 Message-ID: To: Stas Malyshev Cc: Nikita Popov , PHP internals list , "nikic@php.net" Content-Type: multipart/alternative; boundary=089e015380d49e9fdf04e25b7f50 Subject: Re: [PHP-DEV] New handler for retrieving properties when object is serialized From: bukka@php.net (Jakub Zelenka) --089e015380d49e9fdf04e25b7f50 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jul 25, 2013 at 8:56 PM, Stas Malyshev wrote: > You can create those properties when processing __sleep. Nothing > requires them to exist before __sleep was called. > > The problem is that properties will exist after __sleep was called. :) There are situations that you don't want them to exist (for example DateTime). --089e015380d49e9fdf04e25b7f50--