-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix warning when open xlsx file with thumbnail #2517
Conversation
284c99a
to
df39b32
Compare
Your test file is very large, and I am having trouble reading it because of that, but not because of the thumbnail file. I am going to upload another, much smaller file. Do you see the same warning message when you read it? I don't see any warning messages with several different versions of PhpSpreadsheet. I do see a bit of a problem - the thumbnail fail is basically ignored rather than used when, for example, saving a copy of the original - but that's a different problem that will need a different solution. |
4ed28ca
to
2d05f91
Compare
i updated test files.
it should show warning because this piece of code try to call PhpSpreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php Lines 175 to 190 in aa29947
and loadZip try to open it as XMLPhpSpreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php Lines 122 to 133 in aa29947
in this case but if you don't see warning message i think it up to default error_reporting level. if default error_reporting is E_ERROR (not show warning). it will not show anything. should i add |
Aha! Thank you for the explanation. The warning messages you see are when you execute the |
added test for |
Thank you for your contribution. |
This is:
Checklist:
Why this change is needed?
this should fix #2516. by not try to open thumbnail as xml