6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7963] Horde's Yaml parser chokes on legal tabs.
*
Your Email Address
*
Spam protection
Enter the letters below:
._. .. .._. __ | ||\/| | / ` _|_\__|| |_|_\__.
Comment
> The following code snipped demonstrates that Horde's Yaml parser > chokes on legal (non-indentation) tabs in Yaml content. The snippet > is also attached to this ticket. > > > > Spyc and Syck have the same bug. (sfYaml does not, but it has other bugs.) > > > > Thanks! > > > > <?php > > > > > > $yaml0 = "- [ one, two ]\n"; // separated by 2 tabs > > $yaml1 = "- [ one, two ]\n"; // separated by 2 spaces > > > > > > require_once ("Horde/Yaml.php"); > > require_once ("Horde/Yaml/Dumper.php"); > > require_once ("Horde/Yaml/Exception.php"); > > require_once ("Horde/Yaml/Loader.php"); > > require_once ("Horde/Yaml/Node.php"); > > > > > > print_r (Horde_Yaml::load ($yaml0)); > > print_r (Horde_Yaml::load ($yaml1)); > > > > > > /* > ---------------------------------------------------------------------------- > > > > I expect identical output, but I get this: > > > > Array > > ( > > [0] => Array > > ( > > [0] => one, two > > ) > > > > ) > > Array > > ( > > [0] => Array > > ( > > [0] => one > > [1] => two > > ) > > > > ) > > > > ---------------------------------------------------------------------------- > */ > > > > > > ?> > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers