-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Dotenv] parse concatenated variable values #23351
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
xabbuh
commented
Jul 3, 2017
Q | A |
---|---|
Branch? | 3.3 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #23306 |
License | MIT |
Doc PR |
The diff is best viewed at https://github.com/symfony/symfony/pull/23351/files?w=1. |
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.
Works for me 👍
while ("\n" !== $this->data[$this->cursor] && ')' !== $this->data[$this->cursor]) { | ||
$value .= $this->data[$this->cursor]; | ||
|
||
if ('(' === $this->data[$this->cursor]) { |
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.
Looks like we don't have test for that, do we?
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.
https://github.com/xabbuh/symfony/blob/aaaf64ddde2aa22cb90a1c60fd902865589f5b18/src/Symfony/Component/Dotenv/Tests/DotenvTest.php#L144 and the line below trigger this part
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.
But we could indeed add a test with non-matching parentheses.
Thank you @xabbuh. |
This PR was merged into the 3.3 branch. Discussion ---------- [Dotenv] parse concatenated variable values | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23306 | License | MIT | Doc PR | Commits ------- aaaf64d [Dotenv] parse concatenated variable values