php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #74419 JSON_PRETTY_PRINT prints only Unix newlines
Submitted: 2017-04-12 08:47 UTC Modified: 2017-04-20 12:01 UTC
From: matthieux dot dekamen at gmail dot com Assigned:
Status: Open Package: JSON related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matthieux dot dekamen at gmail dot com
New email:
PHP Version: OS:

 

 [2017-04-12 08:47 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-20 12:01 UTC] leigh@php.net
-Type: Bug +Type: Feature/Change Request
 [2017-07-31 12:55 UTC] 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-07-31 12:57 UTC] 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"
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 00:01:30 2019 UTC