-
Notifications
You must be signed in to change notification settings - Fork 1.8k
xml_set_*_handler() deprecation fix for PHP 8.4 #3563
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
Conversation
Is this covered by tests, I did not see it fail on 8.4 🤔 |
Don't know,but it's a deprecated warning only. |
I don't think there are any tests related to SVG parsing. I'll add some tests to this PR to cover some Image::Cache use cases (unless somebody beats me to it). |
I went ahead and added a test case via #3564 so I will move forward with merging this. Deprecations don't currently generate errors so unless somebody was really paying attention this could have been missed even with relevant tests. |
Thank you! |
Thank you guys, in the meantime I shipped my fork with the fix. |
relates to dompdf#3563
With the release of PHP 8.4, the xml_set_*_handler() function arguments must be callable or null. Otherwise is a deprecated warning thrown:
Passing non-callable strings is deprecated since 8.4
The message is a bit misleading as dompdf uses
false
as end handler and not a string.