Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Yaml] Fix error handling on ini file parsing#22105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍
javiereguiluz commentedMar 22, 2017
👍 |
xabbuh commentedMar 22, 2017
Thank you@chalasr. |
This PR was merged into the 3.3-dev branch.Discussion----------[Yaml] Fix error handling on ini file parsing| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aShould make travis green again on master./cc@xabbuhCommits-------71cec82 [Yaml] Fix error handling in parser
GuilhemN commentedMar 22, 2017
This part of the code supports things that shouldn't be. "foo"bar is not valid. bar"foo" is valid but should be parsed as This could be fixed by updating some things:
foreach ($linesas$line) {if ($this->preg_match('/[ \t]+#/',$line,$match,PREG_OFFSET_CAPTURE)) {$line =substr($line,0,$match[0][1]); }if ('' ===trim($line)) {$value .="\n";$previousLineWasNewline =true; }elseif ($previousLineWasNewline) {$value .=trim($line);$previousLineWasNewline =false; }else {$value .=''.trim($line);$previousLineWasNewline =false; }} |
This PR was merged into the 3.3 branch.Discussion----------[Yaml] fix multiline block handling| Q | A| ------------- | ---| Branch? | 3.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#21114,#22105 (comment)| License | MIT| Doc PR |Commits-------a2079d6 [Yaml] fix multiline block handling
Should make travis green again on master.
/cc@xabbuh