Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2236 invoked from network); 3 Sep 2012 16:28:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 16:28:58 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61054] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/60-20751-9CAD4405 for ; Mon, 03 Sep 2012 12:28:57 -0400 Received: by obbwc18 with SMTP id wc18so10247691obb.29 for ; Mon, 03 Sep 2012 09:28:54 -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:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=QJScIxiNMTP/mkssAc6mJI4G5tFLDWvpXBGyBIy/DEs=; b=UQW9zZFIZxbdocbN/qWE8K/OMb4zkOGjWj+LT8faByBEldqrZlvz9BS3bx5w7E76+3 1hssH1caTZlyL/09iTRiwpKis9eMcp20sJT5upHx3XW+s3wDZd5UR0iKhk+WZeRF+8SV l65ePwAv2p9gIj27rQpxxfnCMKv91pccRe+h6SWrrAuRlgMftNlwq/GsmmoV2pGWuvhP mLvJ84s3AIE5RzmZOd8RlG6IS+rY//ApfztMWe1/qrj0v81aP+ipZxNEuOxnCwnUw3mY WxTEMiClmPGTp0UJxCHWV42Ls+JPUzLs9pvwbc7ozzRRVzHWaxzI7OLyGbysQ/9htQMh iksg== Received: by 10.60.31.39 with SMTP id x7mr14708931oeh.66.1346689734280; Mon, 03 Sep 2012 09:28:54 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.76.75.105 with HTTP; Mon, 3 Sep 2012 09:28:14 -0700 (PDT) In-Reply-To: References: <5043C3E9.2010105@ajf.me> <5043C5AF.3060701@ajf.me> <5043C74C.8020400@ajf.me> <5043D8C0.3020802@lsces.co.uk> <5044715E.3050504@rotorised.com> Date: Mon, 3 Sep 2012 18:28:14 +0200 X-Google-Sender-Auth: W1Oy20Wq5z5EtAUBbvjJ6TkO_Ss Message-ID: To: Derick Rethans Cc: Benjamin Eberlei , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC for Adding __toString to DateTime From: jpauli@php.net (jpauli) Just In Case, I implemented a solution in an extension of mine. I use a INI setting, ideas are on my github https://github.com/jpauli/Comuto/blob/master/comuto.c#L97 and https://github.com/jpauli/Comuto/blob/master/comuto.c#L175 Anyway, I'm really +1 for patching ext/date to add such a feature :) Julien.P On Mon, Sep 3, 2012 at 5:15 PM, Derick Rethans wrote: > On Mon, 3 Sep 2012, Benjamin Eberlei wrote: > >> as i said above, a global option will make this feature completly unusable >> for libraries. For Doctrine we would really like to have __toString() for >> datetime primary keys (identity map), but we need a reliable stable >> lossless format that can never change. > > Just wondering - would a userland inherited class not work for you? > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > Posted with an email client that doesn't mangle email: alpine > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >