Closed (fixed)
Project:
Project Dependency
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2015 at 17:46 UTC
Updated:
28 Nov 2015 at 01:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
trobey commentedFirst, passing the filename to this function is now deprecated:
http://symfony.com/doc/current/components/yaml/introduction.html
So I have wrapped the filename with file_get_contents(). I have added a try-catch block and output any errors to watchdog. So here is the new code:
I hacked the code to test the Piwik example above. The $info array returned when the parsing error occurs is
The dependencies returned are
The watchdog error is
Should I change the severity? Does this behavior make sense?
I will post a patch shortly.
Comment #3
trobey commentedComment #5
trobey commentedI changed the severity level to error and committed it so it could be included in the next release.