Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001975 [Quercus] major always 08-26-07 03:57 09-19-07 07:38
Reporter kim View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.3
Summary 0001975: isset() returns false on Spyc-parsed array datastructure
Description Spyc (http://spyc.sourceforge.net/) [^] is a YAML parser written in PHP heavily used by the Symfony Framework (http://www.symfony-project.com). [^] Due to the issue illustrated below, symfony does not start up.
Additional Information YAML (foo.yml):

foo:
  bar: foobar


PHP:

require_once('/path/to/Spyc.class.php');

$spyc = new Spyc();
$yml = $spyc->load('foo.yml');

// outputs as expected:
// Array
//(
// [foo] => Array
// (
// [bar] => foobar
// )
//
//)
print_r($yml);

foreach ($yml as $category => $vals) {
        // outputs as expected:
        // Array
        // (
        // [bar] => foobar
        // )
    print_r($vals);

    if (!isset($vals["bar"])) {
                // should not get executed
        echo '$vals["bar"] is not set';
    }
}
Attached Files

- Relationships

- Notes
(0002237)
kim
08-26-07 04:00

basically duplicate of 0001938
 
(0002303)
ferg
09-19-07 07:38

php/0i20
 

- Issue History
Date Modified Username Field Change
08-26-07 03:57 kim New Issue
08-26-07 04:00 kim Note Added: 0002237
09-19-07 07:38 ferg Note Added: 0002303
09-19-07 07:38 ferg Assigned To  => ferg
09-19-07 07:38 ferg Status new => closed
09-19-07 07:38 ferg Resolution open => fixed
09-19-07 07:38 ferg Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker