Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.11.6
-
Fix Version/s: 1.11.7
-
Component/s: Zend_Config
-
Labels:None
-
Tags:
Description
When commenting lines in yaml-config, comments can be started only from 0-position of string, to be processed correctly (to be ignored). Otherwise, by yaml-specification, comment can be started from any position of string, and text after comment should be ignored.
The patch is only replace
if ($line[0] == '#')
Unknown macro: { // comment continue; }
in Zend_Config_Yaml to
$line = rtrim(preg_replace("/#.*$/", "", $line));
Issue Links
| This issue duplicates: | ||||
| ZF-11329 | Zend_Config_Yaml should ignore comments |
|
|
|
Assigned to author of Zend_Config_Yaml