ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.09k stars 330 forks source link

php 8.3 #416

Closed mimooh closed 2 months ago

mimooh commented 2 months ago

Hi, ubuntu 24.04 uses php8.3, but htmlpurifier supports up to php8.1 and I'm in trouble after my server got upgraded yesterday. Is 8.3 support planned?

joebordes commented 2 months ago

I am using htmlpurifier on 8.3 with no issues. What error are you seeing?

mimooh commented 2 months ago

:!php /usr/local/bin/composer -W require mpdf/mpdf Using version ^8.2 for mpdf/mpdf ./composer.json has been updated Running composer update mpdf/mpdf --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - ezyang/htmlpurifier v4.16.0 requires php ~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 -> your php version (8.3.11) does not satisfy that requirement. - phpoffice/phpspreadsheet 1.28.0 requires ezyang/htmlpurifier ^4.15 -> satisfiable by ezyang/htmlpurifier[v4.16.0]. - phpoffice/phpspreadsheet is locked to version 1.28.0 and an update of this package was not requested. You can also try re-running composer require with an explicit version constraint, e.g. "composer require mpdf/mpdf:*" to figure out if any version is installable, or "composer require mpdf/mpdf:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content.

joebordes commented 2 months ago

I see, you can't install it. I had it installed from a previous PHP version. While we wait for an official position from the project managers you can try with --ignore-platform-reqs

bytestream commented 2 months ago

@mimooh you need to update ezyang/htmlpurifier to 4.17.0. PHP 8.3 is not supported on v4.16.0 which you have installed.

This issue should be closed.

mimooh commented 2 months ago

php /usr/local/bin/composer -W require ezyang/htmlpurifier --ignore-platform-reqs fixes my issue, thank you!