Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69606 invoked from network); 7 Jun 2013 19:27:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2013 19:27:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:35213] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/F5-33815-92432B15 for ; Fri, 07 Jun 2013 15:27:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 8DBCE7000454; Fri, 7 Jun 2013 20:27:34 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id k5fa1dAakrN4; Fri, 7 Jun 2013 20:27:34 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id DAF977000437; Fri, 7 Jun 2013 20:27:33 +0100 (WEST) Received: from damnation.nl.lo.geleia.net (a80-101-138-144.adsl.xs4all.nl [80.101.138.144]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 4A40B200773B; Fri, 7 Jun 2013 20:27:33 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Anatol Belski" , "Derick Rethans" Cc: =?utf-8?Q?Johannes_Schl=C3=BCter?= , "Stas Malyshev" , "PHP internals" References: <6dd0f0c5be06dc0713890f2000a0b551.squirrel@webmail.klapt.com> Date: Fri, 07 Jun 2013 21:27:30 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/12.15 (Linux) Subject: Re: [PHP-DEV] Re: #53437 From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Fri, 07 Jun 2013 14:06:11 +0200, Derick Rethans wrote: >> That's the one where conversion int <> string for serialization was >> developed. It came into 5.5 with this patches (the originally proposed >> patch is still attached to that ticket) >> >> http://git.php.net/?p=php-src.git;a=commitdiff;h=0ee71557ffd285552659b6aa37ea236e3bad493f > > ["days"]=> > - int(3) > + string(1) "3" > > and > > - 'days' => 0, > + 'days' => '0', > > I see this in all test cases - this is a BC break. I don't think this is a BC break, or at least it's a very minor. As I understand it, when you read the property directly you still get an int: $iv = "2008-05-11T15:30:00Z/2007-03-01T13:00:00Z"; $di = new DateInterval($iv); var_dump($di->days); //int(437) So this applies only to var_dump() output, serialization output and something exotic as an array cast (which anyway has its own peculiarities wrt the key type conversion -- or the absence of it). -- Gustavo Lopes