svn: /php/php-src/branches/PHP_5_3/ext/date/tests/ bug50475.phpt
| From: | Kai Schröder | Date: | Sat, 17 Jul 2010 23:29:52 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3/ext/date/tests/ bug50475.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63159@lists.php.net to get a copy of this message | ||
k.schroeder Sat, 17 Jul 2010 23:29:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=301361
Log:
Test for #50475
Bug: http://bugs.php.net/50475 (Assigned)
DateTime::setISODate followed by DateTime::setTime
Changed paths:
A php/php-src/branches/PHP_5_3/ext/date/tests/bug50475.phpt
Added: php/php-src/branches/PHP_5_3/ext/date/tests/bug50475.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/bug50475.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/bug50475.phpt 2010-07-17 23:29:52 UTC (rev 301361)
@@ -0,0 +1,18 @@
+--TEST--
+Bug #50475 (DateTime::setISODate followed by DateTime::setTime)
+--FILE--
+<?php
+date_default_timezone_set('Asia/Calcutta');
+
+$date = new DateTime('18-01-2009 00:00:00');
+
+$date->setISODate(2009, 6, 1);
+
+var_dump($date->format('Y-m-d H:i:s'));
+
+$date->setTime(8, 0);
+var_dump($date->format('Y-m-d H:i:s'));
+?>
+--EXPECT--
+string(19) "2009-02-02 00:00:00"
+string(19) "2009-02-02 08:00:00"
\ No newline at end of file
Property changes on: php/php-src/branches/PHP_5_3/ext/date/tests/bug50475.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native