Re: RFC for Adding __toString to DateTime
| From: | Derick Rethans | Date: | Mon, 03 Sep 2012 15:15:34 +0000 |
| Subject: | Re: RFC for Adding __toString to DateTime | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62746@lists.php.net to get a copy of this message | ||
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