Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2809 invoked from network); 26 Jul 2013 09:38:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2013 09:38:50 -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.54 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.216.54 mail-qa0-f54.google.com Received: from [209.85.216.54] ([209.85.216.54:47842] helo=mail-qa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/F1-25917-7A342F15 for ; Fri, 26 Jul 2013 05:38:49 -0400 Received: by mail-qa0-f54.google.com with SMTP id bv4so307275qab.20 for ; Fri, 26 Jul 2013 02:38:45 -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=2KhkghstA5mCJk+xLgUD9qOjCl9vkWZfdojRBwMey0E=; b=t6rje9jqUNGTUUY3IAY538ZB5YH/sA28a8KbEcLtCO/sl01J7wBvkEoFMFFhEdto0Y rw3jgVKT1op1Wl+5XvpSv+QZKMAGKP0J/7Ku3Z0WxWJ7kyRGWZA6HiTY2iaMUAuKm9sO SXMoW+LVp5Yu7pdwfZtXxM+PZ30sRUvQH5+JZNAl34nptS17EpOo4gjZmewvJQKGXIQk 66RZREZj88wTpWNDAdhJvuOvW0u8Q93o6aaTDDIyL7goE9rjQcSGN2lDyvg132IPJadc ZJFjPjhDGG+V7mgVFR9TkmBdEUw1YrvDWxPD+XXWVx9jQI8IxDghBR44INdA7Ltwh+cj oZag== MIME-Version: 1.0 X-Received: by 10.224.15.205 with SMTP id l13mr28177273qaa.67.1374831525275; Fri, 26 Jul 2013 02:38:45 -0700 (PDT) Sender: jakub.php@gmail.com Received: by 10.224.178.69 with HTTP; Fri, 26 Jul 2013 02:38:45 -0700 (PDT) In-Reply-To: <1374793278.3605.1436.camel@guybrush> References: <51F177E7.3020103@sugarcrm.com> <51F182D2.7030007@sugarcrm.com> <1374793278.3605.1436.camel@guybrush> Date: Fri, 26 Jul 2013 10:38:45 +0100 X-Google-Sender-Auth: KgGKyGsJPdzlmqfu0Jc41OG5So8 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: Stas Malyshev , Nikita Popov , PHP internals list , "nikic@php.net" Content-Type: multipart/alternative; boundary=047d7bdc8e1cb0aba304e266e848 Subject: Re: [PHP-DEV] New handler for retrieving properties when object is serialized From: bukka@php.net (Jakub Zelenka) --047d7bdc8e1cb0aba304e266e848 Content-Type: text/plain; charset=ISO-8859-1 > > > What about using our Serializable interface? - That was invented to > serialize internal objects with arbitrary internal data. > > This is a bit painful to generate and then parse (unserialize) string if you do it in C... Especially if you need only add few properties that will contain data for serialization. In that case Serailizable is a bit overkill... And for my use case (DateTime serialization) it would be BC as well. Different format (Serializable always generate Custom string). Jakub --047d7bdc8e1cb0aba304e266e848--