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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 03:01:28 2025 UTC