-
Notifications
You must be signed in to change notification settings - Fork 255
Fixes a problem with php 7.4 #76
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
This would fix the issue dompdf#75
Please, merge! |
Why is it taking so long to merge? |
Please merge and release... ! |
Hm, the last commit of this package is almost two years ago :-( |
I think someone needs to fork this |
Totally agree! |
Please see: dompdf/dompdf#2063 |
I'm using dompdf through laravel and having the same issue. One workaround I could find is:
|
@PhenX Can you kindly release |
@jeliasson There are more things wrong with 7.4, see #77. Also it would be good to have 7.4 compatibility verified on travis, see #74. In my opinion it makes no sense to make a release until these are merged. |
@enumag It would surely be nice to have all 7.4 issues fixed in the same release, but considering there are downstream packages that seems to benefit from this merge alone I think it would not hurt to throw in a minor release. Anyway, let's hope for a few merges and a release bump soon. |
+1 for a hot fix (minor release); many integrations are (partially) broken by this issue. That being said, I don't have the full picture of what's involved (or anyone's time schedule). |
What @sandervanhooft said. I also would like to kindly ask for a commit just addressing this one issue, if in any way possible. |
Following up on what @LinkingYou suggested, here is a donkey-patch based off @andrefedalto's contribution (31cad91). # Donkey patch vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php
cat vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php | sed "s/\$tree\W\=\W\$kern\[\"tree\"\]\;/\$tree \= is_array\(\$kern\) \? \$kern\[\"tree\"\]\ : null\;/g" > ./donkey-patch.php && mv ./donkey-patch.php vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php
# Verify output of donkey patch
cat vendor/phenx/php-font-lib/src/FontLib/AdobeFontMetrics.php | grep '$tree = ' Hope it helps someone! |
This helps @jeliasson |
@jeliasson Thanks a lot! This really helped |
Really hope this is permanently closed soon. |
Hello, 0.5.2 already has this fix, nothing was pushed to master since its release. What can I do more ? |
Had not noticed, left this thread before it was pushed. Thank you |
This would fix the issue #75