Skip to content
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

Fix PHP 8 error: Function libxml_disable_entity_loader() is deprecated #6

Merged
merged 1 commit into from Apr 30, 2021

Conversation

Slamdunk
Copy link
Contributor

No description provided.

Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
@@ -21,6 +21,7 @@ jobs:
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
ini-values: error_reporting=E_ALL
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tvdijen
Copy link
Member

tvdijen commented Apr 30, 2021

This only bypasses the deprecated method on PHP 8+, but that's wrong.. We need to know what alternative replaces this call.

@Slamdunk
Copy link
Contributor Author

We need to know what alternative replaces this call.

Nothing: https://www.php.net/manual/en/migration80.deprecated.php#migration80.deprecated.libxml

Same fix was applied in laminas-xml package: laminas/laminas-xml#3

@tvdijen
Copy link
Member

tvdijen commented Apr 30, 2021

Ok thanks very much! I'm surprised to see a PR in this (yet) unused repository :)

@Slamdunk
Copy link
Contributor Author

Slamdunk commented Apr 30, 2021

I'm surprised to see a PR in this (yet) unused repository :)

I need to upgrade my production to PHP 8, and v4 of saml2 doesn't support it, so I'm on dev-master across all your libraries

@codecov
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #6 (5c57868) into master (1db4c4f) will increase coverage by 0.43%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master       #6      +/-   ##
============================================
+ Coverage     18.01%   18.44%   +0.43%     
- Complexity      121      123       +2     
============================================
  Files            10       10              
  Lines           372      374       +2     
============================================
+ Hits             67       69       +2     
  Misses          305      305              

@tvdijen
Copy link
Member

tvdijen commented Apr 30, 2021

Ah, well in this case I must warn you that saml2 master is really bleeding edge and work in progress!
Good to see we have a voluntary beta-tester though 🤣

@tvdijen tvdijen merged commit 3cba110 into simplesamlphp:master Apr 30, 2021
@Slamdunk Slamdunk deleted the libxml_deprecations branch April 30, 2021 10:47
@tvdijen
Copy link
Member

tvdijen commented Apr 30, 2021

I see no harm in adding php 8 to the supported versions for saml2 v4, so if that would help you, please let me know

@Slamdunk
Copy link
Contributor Author

Ah, well in this case I must warn you that saml2 master is really bleeding edge and work in progress!

Easy to tame on projects with 100% Mutation testing score + max level on static analysis tools

@Slamdunk
Copy link
Contributor Author

I see no harm in adding php 8 to the supported versions for saml2 v4, so if that would help you, please let me know

As a OSS maintainer myself, I would suggest you to support every actively supported PHP version until you release a new stable of your own.
In other words, saml2:v4 should indeed support PHP 8, since v5 isn't ready yet.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants