[pkg-php-pear] Bug#722277: php-symfony-yaml: can't do basic yaml	parsing
    Tom Jones 
    tom.jones at bccx.com
       
    Mon Sep  9 17:53:57 UTC 2013
    
    
  
Package: php-symfony-yaml
Version: 1.0.6-1
Severity: grave
Justification: renders package unusable
Dear Maintainer,
The following program:
require_once('SymfonyComponents/YAML/sfYamlParser.php');
$parser = new sfYamlParser();
$res = $parser->parse('
foo:
 - x: X
   y: Y
   z: Z
');
fails and the error message is:
PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Unable to parse line 4 (  y: Y).' in /usr/share/php/SymfonyComponents/YAML/sfYamlParser.php:252
Stack trace:
#0 /usr/share/php/SymfonyComponents/YAML/sfYamlParser.php(188): sfYamlParser->parse('- x: X?  y: Y? ...')
#1 /home/tom/tsk/symfony/bug.php(10): sfYamlParser->parse('?foo:? - x: X? ...')
#2 {main}
  thrown in /usr/share/php/SymfonyComponents/YAML/sfYamlParser.php on line 252
Since this syntax for a list of maps is very basic and the library
fails to read it, the package is unusable for most users.
Upstream is on version 2.3, which can parse the example YAML just fine.
Debian package is on 1.0.6 and just doesn't work.  I note that sid
still has the same version.  It should be upgraded or removed.
-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php-symfony-yaml depends on:
ii  pear-symfony-project-channel  1.0-1
ii  php5                          5.4.4-14+deb7u4
php-symfony-yaml recommends no packages.
php-symfony-yaml suggests no packages.
-- no debconf information
    
    
More information about the pkg-php-pear
mailing list