-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daylight saving and PHP8.1 #133
Comments
OK I read the PHP 8.1 changelog and indeed seems the whole DateInterval and DateTimeZone calculation where re-implemented and moreso fixed. Hence the reason why most of the Timezone issue this package has do not show up in my fork which is PHP8.1+ only . For complete reference look at https://www.php.net/ChangeLog-8.php#PHP_8_1 the |
Currently as of v3.2.4 all of the existing tests seem to work with the DST patch that was applied (and subsequently refined) in v3.2.1, and currently work from PHP 7.2 to 8.1. Can you take a look at the newest release and see if you are still having issues on PHP 8.1? |
I'm seeing test failures in DaylightSavingsTest with v3.3.1 and PHP 8.1. Tests pass on PHP 7.4.
|
Here is a reproducer:
Which outputs:
By going through https://www.php.net/ChangeLog-8.php, I see several changes to the date implementation throughout the patch releases. This seems to be the commit that fixed 8.1.6: There is a related php upstream issue at php/php-src#9165 |
As discussed in dragonmantank#133, the PHP 8.1's date extension daylight saving APIs have been suffering with instabilities. Let's skip the affected tests until php/php-src#9165 is resolved. Signed-off-by: Athos Ribeiro <[email protected]>
As discussed in #133, the PHP 8.1's date extension daylight saving APIs have been suffering with instabilities. Let's skip the affected tests until php/php-src#9165 is resolved. Signed-off-by: Athos Ribeiro <[email protected]> Signed-off-by: Athos Ribeiro <[email protected]>
I believe I have a fix for this, it is due to how time math was being handled. Before I release a fix, could I get your thoughts on #181 as it will impact the overall solution? |
In PHP8.1 some improvements around daylight saving did land and they are messing with how the next run is being calculated. The
DaylightSavingsTest
test suite is having many issues.Excerpt from this blog post since I fail to find the correct commit/entry in the php changelog
see https://medium.com/geekculture/php-8-1-is-coming-2nd-round-of-upcoming-features-e1c5ddd14b38
I believe this makes the following tests fail.
There are other similar error since I do not want to change the tests maybe something needs to happen here in the code to selectively prevent any changes in PHP8.1 🤔 .
Also some other tests just end up in an infinite loop
The text was updated successfully, but these errors were encountered: