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
PHP8 compatibility #456
PHP8 compatibility #456
Conversation
As this stands, I think this is OK, but I need some direction/help on fixing all the tests. I'm unsure about what these errors ean:
And some failures seem to be related to the project logic instead of php8, but I'm not totally sure:
And finally this one:
|
Note that I need some help at this point to ensure tests are passing. Since travis is no longer runnings tests, I don't know if these tests used to work regardless of php8 or not, and don't have a good idea on if I've made backwards incompatible changes related to updates to phpunit. In other words, I could use some extra help from from the maintainers! |
The lastest code pushed past Travis on PHP 5.4, 5.5, 5.6 and 7.0 and had some issues with 7.1, 7.2 and 7.3 On my local environment them past so it should be some issue at the Travis, the 3.4.1 release past on Travis Your code changes on the test made it incompatible with old versions of PHP
or the method
which was introduced in phpunit 7.5 which forces the use of PHP 7.1 |
I was able to reproduce the Travis fails on my local with recent versions of the dependencies, so I believe is related to some change in dependency behavior. But I don't get the "testIsInValidCert" test error you experienced. |
Thanks!
We’ll have to decide what to do as php 8 requires a newer phpunit, which in
turn requires the use the `:void` on the `setup()` method.
Perhaps a new major version of the library to differentiate php 7.4+?
…On Mon, Dec 28, 2020 at 10:58 Sixto Martin ***@***.***> wrote:
I was able to reproduce the Travis fails on my local with recent versions
of the dependencies, so I believe is related to some change in dependency
behavior
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#456 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADSDUYFWKGM45VKYU2D3KDSXC2J7ANCNFSM4VEMUCVQ>
.
|
The errors on Travis started after using phpunit 7.5.18, that introduced 2 bugfixes:
I guess the php-saml test that start failing are related to #3968. P.S With phpunit 7.5.17 Travis gives the OK: https://cdn.travis-ci.org/github/onelogin/php-saml/builds/751847145 |
I created #457. I think it has low priority since we can simply use phpunit 7.5.17 for now. |
I already maintain the PHP5 (2.X branch) and the PHP7 (3.X branch). I dislike introducing a new branch for PHP8 that will complicate more the maintenance of php-saml. |
Sounds good! I'm not sure if it was lost in all the changes, but the change here makes the library compatible with php8 (this change isn't a change to the tests): https://github.com/onelogin/php-saml/pull/456/files#diff-b61383b8af6d0832f4319fa27427cb2ab7c7932efc870be2a558145fbd828da0 In terms of priority, that will need to get included in order to work with php 8. |
Hi! It looks like PHP8 requires a newer phpunit, so I can't pin version 7.5.17 of phpunit and still use PHP 8.
I've updated |
I may be getting a bit mixed up in our goals of this PR. Perhaps I (we?) can split this up into multiple PR's:
Library Working in PHP 8This requires an update to Tests Working in PHP 8This requires:
ProposalWhat I think we can do then, is take care of item 1 so this library is working for those on PHP 8, and then do another PR to get the tests, etc, working for PHP8. We can then work through the best strategy in terms of backwards compatibility, etc. |
Sounds good |
For those looking back later, here's a diff of the original PR changes: fideloper/php-saml@3.6.0...3.6.0-original |
Related to #453
TODO:
libxml_disable_entity_loader()
Remaining Tests
Here is the confusing output remaining for phpunit tests:
Click to view