PHP_XLSXWriter icon indicating copy to clipboard operation
PHP_XLSXWriter copied to clipboard

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

Open xaviermdq opened this issue 1 year ago • 0 comments

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.

xaviermdq avatar Mar 27 '23 01:03 xaviermdq