|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-09-23 14:41 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-09-23 14:41 UTC] requinix@php.net
[2017-09-23 14:51 UTC] contatto at developiu dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Mar 28 15:00:02 2026 UTC |
Description: ------------ In the ducumentation it is stated that from php 5.3 if time contains an invalid date/time format, then an exception is now thrown. Previously an error was emitted. This does not happen always, as the code below shows. No exception is thrown and the date object is the first of march. Note: I'm using php from remi repositories and php --version shows version 7.1.7 which is not an available options in the select before. Test script: --------------- $d=new DateTime("2017-02-29"); var_dump($d);