del php-src: ext/date/tests/bug73858.phpt

[email protected] (Joe Watkins)
Newsgroups php.cvs
Message-ID <[email protected]>
Branch: PHP-7.1.3
Deleted commits count: 3
User: Joe Watkins <[email protected]>         Fri, 03 Mar 2017 10:21:16 +0000

Changed paths:
  M  ext/date/tests/bug73858.phpt


Diff:
diff --git b/ext/date/tests/bug73858.phpt a/ext/date/tests/bug73858.phpt
index 5b619b1..300b366 100644
--- b/ext/date/tests/bug73858.phpt
+++ a/ext/date/tests/bug73858.phpt
@@ -7,8 +7,8 @@ In the "verbose setup method" I'm trying setup the DateTime object myself
 to see if it's the format string which is parsed in correctly or if it's the DateTime
 object which is breaking stuff. From the testing it appears DateTime is broken somehow.
 */
-$ss = 'first day of March midnight';
-$es = 'first day of April midnight - 1 second';
+$ss = 'february first day of last month midnight';
+$es = 'february first day of this month midnight - 1 second';
 
 $s = new DateTime($ss);
 $e = new DateTime($es);
@@ -50,7 +50,7 @@ effect on the results of the diff. By modifying the datetime with ->modify every
 it just means you have to be careful of how we work with DateTimes .
 */
 $s = new DateTime($ss);
-$e = new DateTime('first day of April midnight');
+$e = new DateTime('february first day of this month midnight');
 $e->modify('- 1 second');
 var_dump($e->diff($s)->days); // 30 ... and should be 30
 ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.