Re: svn: /phpdoc/en/trunk/reference/datetime/datetime/ construct.xml
| From: | Daniel Convissor | Date: | Sat, 08 May 2010 19:47:28 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/datetime/datetime/ construct.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381810@lists.php.net to get a copy of this message | ||
Hi Derick:
On Wed, May 05, 2010 at 10:45:32AM +0100, Derick Rethans wrote:
> On Wed, 5 May 2010, Daniel Convissor wrote:
>
> > Modified: phpdoc/en/trunk/reference/datetime/datetime/construct.xml
> > ===================================================================
> > --- phpdoc/en/trunk/reference/datetime/datetime/construct.xml 2010-05-05 03:18:48 UTC (rev
> > 299009)
> > +++ phpdoc/en/trunk/reference/datetime/datetime/construct.xml 2010-05-05 03:45:09 UTC (rev
> > 299010)
> > @@ -94,7 +94,13 @@
> > <programlisting role="php">
> > <![CDATA[
> > <?php
> > -$date = new DateTime('2000-01-01');
> > +try {
> > + $date = new DateTime('2000-01-01');
> > +} catch (Exception $e) {
> > + echo $e->getMessage();
> > + exit(1);
> > +}
> > +
>
> *If* you do this, add getLastErrors there too.
Why? What would you want the example to look like?
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409