Req #74419 [Com]: JSON_PRETTY_PRINT prints only Unix newlines

From: Date: Wed, 21 Apr 2021 12:03:25 +0000
Subject: Req #74419 [Com]: JSON_PRETTY_PRINT prints only Unix newlines
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233537@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74419&edit=1 ID: 74419 Comment by: buzzwordlink at gmail dot com Reported by: matthieux dot dekamen at gmail dot com Summary: JSON_PRETTY_PRINT prints only Unix newlines Status: Open Type: Feature/Change Request Package: JSON related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: My site had the same problem, site https://fortegrp.com/ Previous Comments: ------------------------------------------------------------------------ [2017-07-31 12:57:37] spam2 at rhsoft dot net should it really? frankly i stopped using \r\n years before i switched to linux everywhere because the only software which can't handle \n is "notepad" ------------------------------------------------------------------------ [2017-07-31 12:55:02] justin_maldanado at protonmail dot com Got the same problem when working on my project https://www.oxagile.co.uk/services/php-development-services/ ------------------------------------------------------------------------ [2017-04-12 08:47:27] matthieux dot dekamen at gmail dot com Description: ------------ JSON_PRETTY_PRINT should use the newline as in PHP_EOL, but instead inserts only Unix newlines. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74419&edit=1

« previous php.bugs (#233537) next »