sofort / sofortlib-php

SOFORT API wrapper for PHP
Other
65 stars 16 forks source link

PHP 8.1 uses HTML parsing functions in other way #41

Open panvid opened 2 years ago

panvid commented 2 years ago

See: https://www.php.net/manual/en/function.htmlspecialchars.php and https://www.php.net/html_entity_decode and https://www.php.net/manual/de/migration81.incompatible.php

8.1.0 | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401.

https://github.com/sofort/sofortlib-php/blob/master/src/Sofort/SofortLib/Xml/Element/Text.php#L44 and https://github.com/sofort/sofortlib-php/blob/master/src/Sofort/SofortLib/Xml/XmlToArray.php#L169 and https://github.com/sofort/sofortlib-php/blob/master/src/Sofort/SofortLib/Xml/XmlToArray.php#L167

strarsis commented 1 year ago

@lxlang: Could this be updated for PHP 8.1 compatibility?