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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC