diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-08-12 14:46:38 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-08-12 14:46:38 +0400 |
commit | 05eaed43453bf74144bc6115db641e9e8a41d568 (patch) | |
tree | 3a8a5de818ba713bcbcecae35462c61b077f54f6 | |
parent | 06476e5291b93832a2061eb58585a9ddcf6ff860 (diff) | |
parent | b3468662de5b9f96ef27b4059556bbb0da113645 (diff) | |
download | php-git-05eaed43453bf74144bc6115db641e9e8a41d568.tar.gz |
Merge branch 'master' into phpng
* master:
fix the failing date tests introduced with the latest timezonedb update Derick confirmed on irc that the new/current behavior is the correct and that the tests should be updated to reflect it
Fixed bug #67813 (CachingIterator::__construct InvalidArgumentException wrong message)
-rw-r--r-- | ext/date/tests/bug20382-2.phpt | 12 | ||||
-rw-r--r-- | ext/date/tests/bug33415-2.phpt | 4 | ||||
-rw-r--r-- | ext/date/tests/bug33532.phpt | 4 | ||||
-rw-r--r-- | ext/spl/spl_iterators.c | 2 | ||||
-rw-r--r-- | ext/spl/tests/spl_caching_iterator_constructor_flags.phpt | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/ext/date/tests/bug20382-2.phpt b/ext/date/tests/bug20382-2.phpt index 5e075686e3..cc2d967895 100644 --- a/ext/date/tests/bug20382-2.phpt +++ b/ext/date/tests/bug20382-2.phpt @@ -95,18 +95,18 @@ result = Monday 2037-10-05 00:00:00 NZDT wanted = Monday 00:00:00 Australia/Adelaide -ts = Friday 1971-01-01 17:17:17 CST -result = Monday 1971-01-04 00:00:00 CST +ts = Friday 1971-01-01 17:17:17 ACST +result = Monday 1971-01-04 00:00:00 ACST wanted = Monday 00:00:00 Australia/Darwin -ts = Monday 1971-03-29 17:17:17 CST -result = Monday 1971-04-05 00:00:00 CST +ts = Monday 1971-03-29 17:17:17 ACST +result = Monday 1971-04-05 00:00:00 ACST wanted = Monday 00:00:00 Australia/Perth -ts = Friday 1971-01-01 17:17:17 WST -result = Monday 1971-01-04 00:00:00 WST +ts = Friday 1971-01-01 17:17:17 AWST +result = Monday 1971-01-04 00:00:00 AWST wanted = Monday 00:00:00 America/Aruba diff --git a/ext/date/tests/bug33415-2.phpt b/ext/date/tests/bug33415-2.phpt index 424be76fc4..c284f2503e 100644 --- a/ext/date/tests/bug33415-2.phpt +++ b/ext/date/tests/bug33415-2.phpt @@ -233,8 +233,8 @@ result=Saturday 1970-01-03 00:00:00 CAT 0 wanted=Saturday 00:00:00 TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes -tStamp=Thursday 1980-04-24 17:17:17 KAST 0 -result=Thursday 1980-05-01 03:00:00 CST 0 +tStamp=Thursday 1980-04-24 17:17:17 XJT 0 +result=Thursday 1980-05-01 00:00:00 XJT 0 wanted=Thursday 03:00:00 TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does diff --git a/ext/date/tests/bug33532.phpt b/ext/date/tests/bug33532.phpt index 148630855d..5323e8c8db 100644 --- a/ext/date/tests/bug33532.phpt +++ b/ext/date/tests/bug33532.phpt @@ -39,5 +39,5 @@ datestr 10:00:00 AM July 1 2005 UTC Setting TZ input 10:00:00 AM July 1 2005 -strftime 10:00:00 AM July 1 2005 EST +1000 -datestr 10:00:00 AM July 1 2005 EST +strftime 10:00:00 AM July 1 2005 AEST +1000 +datestr 10:00:00 AM July 1 2005 AEST diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 2702628280..8796a9c7a7 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -1481,7 +1481,7 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z return NULL; } if (spl_cit_check_flags(flags) != SUCCESS) { - zend_throw_exception(spl_ce_InvalidArgumentException, "Flags must contain only one of CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_CURRENT", 0 TSRMLS_CC); + zend_throw_exception(spl_ce_InvalidArgumentException, "Flags must contain only one of CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_INNER", 0 TSRMLS_CC); zend_restore_error_handling(&error_handling TSRMLS_CC); return NULL; } diff --git a/ext/spl/tests/spl_caching_iterator_constructor_flags.phpt b/ext/spl/tests/spl_caching_iterator_constructor_flags.phpt index 499cd67559..dcb4287c45 100644 --- a/ext/spl/tests/spl_caching_iterator_constructor_flags.phpt +++ b/ext/spl/tests/spl_caching_iterator_constructor_flags.phpt @@ -21,5 +21,5 @@ $test = new CachingIterator($arrayIterator, 3); // this throws an exception ?> ===DONE=== --EXPECTF-- -Flags must contain only one of CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_CURRENT +Flags must contain only one of CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_INNER ===DONE=== |