Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84988 invoked from network); 9 Mar 2013 20:36:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2013 20:36:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:37155] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/00-19169-D5D9B315 for ; Sat, 09 Mar 2013 15:36:46 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id EE3D6DE13E; Sat, 9 Mar 2013 20:36:41 +0000 (GMT) Date: Sat, 9 Mar 2013 20:36:41 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Anatol Belski cc: Gustavo Lopes , internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Fix for bug #63437 From: derick@php.net (Derick Rethans) On Tue, 5 Mar 2013, Anatol Belski wrote: > I've reworked the patch from > http://nebm.ist.utl.pt/~glopes/misc/date_period_interval_ser.diff > (mentioned by tony2001) for bug #63437, that seems to fix the issue. > That patch was ported back to 5.3 and adapted to the current 5.4+. > Both variants are posted to the ticket. Serializing this as a base64 encoded variant of some binary data is not a good thing. If you want to serialize, it needs to output the same thigns that allow users to create the period or interval. I also don't think this would work for Big Endian vs Little Endian either. cheers, Derick