note 94047 deleted from datetime.construct by danbrown
| From: | danbrown@php.net | Date: | Tue, 13 Oct 2009 19:08:43 +0000 |
| Subject: | note 94047 deleted from datetime.construct by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161702@lists.php.net to get a copy of this message | ||
Note Submitter: david at synapsestudios NO SPAM dot com
----
__construct doesn't actually *quite* throw an exception on error when using windows, or rather,
PHP and I have different definitions of error. For example, the following examples emit warnings:
<?php
new DateTime('johnny');
new DateTime('20-20-20');
new DateTime('2');
new DateTime('this is not a datetime');
?>
*big sigh*