com php-src: Updated test case and added BFN to NEWS.: NEWS ext/date/tests/bug60774.phpt
| From: | Derick Rethans | Date: | Sun, 31 Mar 2013 10:07:24 +0000 |
| Subject: | com php-src: Updated test case and added BFN to NEWS.: NEWS ext/date/tests/bug60774.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71814@lists.php.net to get a copy of this message | ||
Commit: 503760c9130683a21ffe631fddfb20cc18ee2867
Author: Derick Rethans <github@derickrethans.nl> Sun, 31 Mar 2013 11:07:24 +0100
Parents: b07ecb5501bcc07c830b552aee39098439fe2027
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=503760c9130683a21ffe631fddfb20cc18ee2867
Log:
Updated test case and added BFN to NEWS.
Changed paths:
M NEWS
M ext/date/tests/bug60774.phpt
Diff:
diff --git a/NEWS b/NEWS
index c8b7116..f0a6b95 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,12 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 20??, PHP 5.5.0 Beta 3
+- DateTime
+ . Fixed bug #54567 (DateTimeZone serialize/unserialize) (Lonny
+ Kapelushnik, Derick)
+ . Fixed bug #60774 (DateInterval::format("%a") is always zero when an
+ interval is created using the createFromDateString method) (Lonny
+ Kapelushnik, Derick)
28 Mar 2013, PHP 5.5.0 Beta 2
diff --git a/ext/date/tests/bug60774.phpt b/ext/date/tests/bug60774.phpt
index af8f447..865928d 100644
--- a/ext/date/tests/bug60774.phpt
+++ b/ext/date/tests/bug60774.phpt
@@ -7,8 +7,8 @@ var_dump($i);
echo $i->format("%d"), "\n";
echo $i->format("%a"), "\n";
?>
---EXPECT--
-object(DateInterval)#1 (8) {
+--EXPECTF--
+object(DateInterval)#1 (%d) {
["y"]=>
int(0)
["m"]=>
@@ -21,10 +21,24 @@ object(DateInterval)#1 (8) {
int(0)
["s"]=>
int(0)
+ ["weekday"]=>
+ int(0)
+ ["weekday_behavior"]=>
+ int(0)
+ ["first_last_day_of"]=>
+ int(0)
["invert"]=>
int(0)
["days"]=>
bool(false)
+ ["special_type"]=>
+ int(0)
+ ["special_amount"]=>
+ string(1) "0"
+ ["have_weekday_relative"]=>
+ int(0)
+ ["have_special_relative"]=>
+ int(0)
}
2
(unknown)