Re: svn: /phpdoc/en/trunk/reference/datetime/datetime/ construct.xml
| From: | Derick Rethans | Date: | Wed, 05 May 2010 09:45:32 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/datetime/datetime/ construct.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-6588@lists.php.net to get a copy of this message | ||
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.
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug