Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47703 invoked from network); 16 Dec 2012 12:21:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2012 12:21:53 -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:47523] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/95-27715-FDCBDC05 for ; Sun, 16 Dec 2012 07:21:53 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 1A519DE13D; Sun, 16 Dec 2012 12:21:48 +0000 (GMT) Date: Sun, 16 Dec 2012 12:21:47 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Herman Radtke cc: =?UTF-8?Q?=C3=81ngel_Gonz=C3=A1lez?= , Nikita Nefedov , "internals@lists.php.net" In-Reply-To: Message-ID: References: <50C63A7C.8090705@gmail.com> 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] DateTime improvement From: derick@php.net (Derick Rethans) On Tue, 11 Dec 2012, Derick Rethans wrote: > On Mon, 10 Dec 2012, Herman Radtke wrote: > > > Another option is to make an ImmutableDateTime class. The DateTime > > class could actually be changed to inherit the ImmutableDateTime > > class. The only extensions on the DateTime class would be the mutable > > methods. > > I'm not really against that, but we do need to use the Date namespace - > so DateTimeImmutable. It might be trickier to do than it sounds > though... I've started hacking on this - with some luck I'm done before PHP 5.5 beta1. cheers, Derick