majo.stitcher.io icon indicating copy to clipboard operation
majo.stitcher.io copied to clipboard

fix line ending for windows systems in board initialisation

Open dev3139 opened this issue 1 year ago • 1 comments

Exploding the initial board string with PHP_EOL fails on windows systems because of the file's line separator

dev3139 avatar May 09 '23 12:05 dev3139

That's strange, the goal of PHP_EOL is exactly to be cross-platform compatible:

PHP_EOL (string) The correct 'End Of Line' symbol for this platform.

https://www.php.net/manual/en/reserved.constants.php

\n would only work on Linux. Maybe there's another issue at play? Unfortunately I cannot test on Windows 🤔

brendt avatar May 10 '23 04:05 brendt