Skip to content

Corrupt Sample Output for 20 and 30#2648

Merged
oleibman merged 2 commits intoPHPOffice:masterfrom
oleibman:samp2030
Mar 4, 2022
Merged

Corrupt Sample Output for 20 and 30#2648
oleibman merged 2 commits intoPHPOffice:masterfrom
oleibman:samp2030

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?

oleibman added 2 commits March 4, 2022 00:14
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