Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63484 invoked from network); 25 Jul 2013 19:56:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2013 19:56:07 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.99 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.99 smtp99.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.99] ([108.166.43.99:53926] helo=smtp99.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/E7-05798-6D281F15 for ; Thu, 25 Jul 2013 15:56:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 5A6441B0115; Thu, 25 Jul 2013 15:56:04 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id AFDF91B00E9; Thu, 25 Jul 2013 15:56:02 -0400 (EDT) Message-ID: <51F182D2.7030007@sugarcrm.com> Date: Thu, 25 Jul 2013 12:56:02 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Nikita Popov CC: Jakub Zelenka , PHP internals list , "nikic@php.net" References: <51F177E7.3020103@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New handler for retrieving properties when object is serialized From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > __sleep returns an array of object property *names* to be serialized. > Using __sleep you can restrict the set of serialized properties, but the > properties still need to exist. You can create those properties when processing __sleep. Nothing requires them to exist before __sleep was called. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227