php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67698 Wrong indentation level (invalid yaml)
Submitted: 2014-07-28 11:14 UTC Modified: 2014-07-28 11:56 UTC
From: joey at gimo dot co dot uk Assigned:
Status: Closed Package: yaml (PECL)
PHP Version: 5.4.31 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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joey at gimo dot co dot uk
New email:
PHP Version: OS:

 

 [2014-07-28 11:14 UTC] joey at gimo dot co dot uk
Description:
------------
---
From manual page: http://www.php.net/function.yaml-emit
---

product:
- sku: BL394D
  quantity: 4
  description: Basketball
  price: 450
- sku: BL4438H
  quantity: 1
  description: Super Hoop
  price: 2392

Should be:

product:
  - sku: BL394D
    quantity: 4
    description: Basketball
    price: 450
  - sku: BL4438H
    quantity: 1
    description: Super Hoop
    price: 2392


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-28 11:56 UTC] joey at gimo dot co dot uk
-Status: Open +Status: Closed
 [2014-07-28 11:56 UTC] joey at gimo dot co dot uk
It's not pretty but apparently not adding an indentation level is valid.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 22:03:34 2021 UTC