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

Update xlsxwriter.class.php to avoid malformed files in PHP < 8.0.0 #345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xaviermdq
Copy link

Modified float to string casting conversion in several methods to always use '.' as decimal separator for PHP < 8.0.0
From PHP manual:
"As of PHP 8.0.0, the decimal point character is always '.'. Prior to PHP 8.0.0, the decimal point character is defined in the script's locale (categoryLC_NUMERIC). See the setlocale() function."
I used setlocale but may be we can use sprintf or number_format. I'm not sure which is the best way to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant