Skip to content
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

Corrupt Sample Output for 20 and 30 #2648

Merged
merged 2 commits into from
Mar 4, 2022
Merged

Conversation

oleibman
Copy link
Collaborator

@oleibman oleibman commented Mar 4, 2022

Xls Reader can read drawing offsetX and offsetY as float. However, Excel Xlsx (and PhpSpreadsheet) wants them only as int. This leads 20_Read_Xls and 30_Template to produce corrupt Xlsx files for any Php release. Change Xls Reader to treat values as int, eliminating the corrupt files.

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

Xls Reader can read drawing offsetX and offsetY as float. However, Excel Xlsx (and PhpSpreadsheet) wants them only as int. This leads 20_Read_Xls and 30_Template to produce corrupt Xlsx files for any Php release. Change Xls Reader to treat values as int, eliminating both the Php8.1 problem and the corrupt files.
@oleibman oleibman merged commit dade9cc into PHPOffice:master Mar 4, 2022
@oleibman oleibman deleted the samp2030 branch March 4, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant