note 121981 added to dateinterval.construct

From: Date: Tue, 05 Dec 2017 22:55:42 +0000
Subject: note 121981 added to dateinterval.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-209316@lists.php.net to get a copy of this message
⚠️ It's important to remember the warning about DateInterval given by "admin at torntech dot com" in an earlier comment (http://php.net/manual/en/dateinterval.construct.php#116750). To reiterate: Some versions of PHP (e.g., 5.6.31) have a bug that disallows fractional parts in a ISO 8601 duration string given as the argument for the DateInterval constructor. That is, these examples will fail: <?php // 'P0.5Y' is valid according to ISO 8601 $interval = new DateInterval('P0.5Y'); // Throws exception ?> <?php // 'PT585.829S' is valid according to ISO 8601 $interval = new DateInterval('PT585.829S'); // Throws exception ?> If this bug affects you, please go to the report for this bug in the PHP Bug Tracking System, and place a vote stating that it affects you: https://bugs.php.net/bug.php?id=53831 ---- Server IP: 208.43.231.9 Probable Submitter: 76.112.212.209 ---- Manual Page -- http://php.net/manual/en/dateinterval.construct.php Edit -- https://master.php.net/note/edit/121981 Del: integrated -- https://master.php.net/note/delete/121981/integrated Del: useless -- https://master.php.net/note/delete/121981/useless Del: bad code -- https://master.php.net/note/delete/121981/bad+code Del: spam -- https://master.php.net/note/delete/121981/spam Del: non-english -- https://master.php.net/note/delete/121981/non-english Del: in docs -- https://master.php.net/note/delete/121981/in+docs Del: other reasons-- https://master.php.net/note/delete/121981 Reject -- https://master.php.net/note/reject/121981 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209316) next »