MyShaarli/application/config
Ganesh Kandu 42a72c02fa
Replaced PHP_EOL to "\n"
i was getting error 

```
An error occurred while parsing JSON configuration file (data/config.json.php): error code #4
➜ Syntax error
Please check your JSON syntax (without PHP comment tags) using a JSON lint tool such as jsonlint.com.
```
after debug i found 
```php
        $data = str_replace(self::getPhpHeaders(), '', $data);
        $data = str_replace(self::getPhpSuffix(), '', $data);
```
doesn't removing php header and php suffix

cause of this issue was PHP_EOL represents the endline character for the current system. if my  ```config.json.php```  was encoded with unix ( LF ) and php running on windows windows encoding ( CR LF ) is not same as unix encoding ( LF ) so ```str_replace``` doesn't replace strin  then it causes issue.
2020-10-27 17:42:35 +05:30
..
exception Shaarli's translation 2017-10-22 12:55:03 +02:00
ConfigIO.php application: introduce the Shaarli\Config namespace 2017-03-04 17:07:52 +01:00
ConfigJson.php Replaced PHP_EOL to "\n" 2020-10-27 17:42:35 +05:30
ConfigManager.php Add a setting to retrieve bookmark metadata asynchrounously 2020-10-15 09:08:46 +02:00
ConfigPhp.php namespacing: \Shaarli\Updater 2019-01-12 23:11:19 +01:00
ConfigPlugin.php New basePath: fix officiel plugin paths and vintage template 2020-07-26 14:43:10 +02:00