php-svg-lib icon indicating copy to clipboard operation
php-svg-lib copied to clipboard

Php8.5 Deprecation in svg-lib

Open oleibman opened this issue 3 months ago • 1 comments

1) PhpOffice\PhpWordTests\ZampleTest::testSample with data set "Sample_47_SVG.php" ('samples/Sample_47_SVG.php')
Exception: Function xml_parser_free() is deprecated since 8.5, as it has no effect since PHP 8.0 /home/runner/work/PHPWord/PHPWord/vendor/dompdf/php-svg-lib/src/Svg/Document.php 164

/home/runner/work/PHPWord/PHPWord/tests/bootstrap.php:49
/home/runner/work/PHPWord/PHPWord/vendor/dompdf/php-svg-lib/src/Svg/Document.php:164

Same problem in line 260.

Change to avoid this problem has already been applied in src/image/cache.

oleibman avatar Nov 30 '25 09:11 oleibman

I'm working on an update to the library now.

bsweeney avatar Nov 30 '25 16:11 bsweeney