|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59657 no as key parsed as boolean, should be string
Submitted: 2011-03-08 09:55 UTC Modified: 2017-04-01 21:43 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: niklas dot laxstrom at gmail dot com Assigned:
Status: Wont fix Package: syck (PECL)
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-03-08 09:55 UTC] niklas dot laxstrom at gmail dot com
It looks like the parser thinks that >no< is a boolean value, 
even when it's a key, not a value.

Reproduce code:
Feed the yaml below to spyc_load()

  class: JavaFFS
  sourcePattern: %GROUPROOT%/freecol/trunk/
  definitionFile: %GROUPROOT%/freecol/trunk/
  targetPattern: freecol/
    cs:    cs_CZ
    es:    es_ES
    it:    it_IT
    no:    nb_NO
    pl:    pl_PL
    sv:    sv_SE
    nl-be: nl_BE
    en-gb: en_GB
    en-us: en_US
    pt:    pt_PT
    pt-br: pt_BR
    zh-hans: zh_CN

Expected result:
--- yaml-test-syck-pecl.txt     2011-03-08 14:21:52.636297886 
+++ yaml-test-syck.txt  2011-03-08 14:21:52.384297881 +0000
@@ -82,6 +82,7 @@
           'es' => 'es_ES',
           'it' => 'it_IT',
           'nl-be' => 'nl_BE',
+          'no' => 'nb_NO',
           'pl' => 'pl_PL',
           'pt' => 'pt_PT',
           'pt-br' => 'pt_BR',

Actual result:
The whole entry with key 'no' is missing.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-01 21:43 UTC]
-Status: Open +Status: Wont fix
 [2017-04-01 21:43 UTC]
Due to this extension not seeing any activity since 2008, this issue will not be fixed. We are therefore closing this now.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 11:01:30 2024 UTC