Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer] Add CsvEncoder tests for PHP 7.4#32051
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
src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Simperfit commentedJun 15, 2019
cc@dunglas |
nicolas-grekas commentedJul 18, 2019
What should we do with this PR? |
ro0NL commentedJul 18, 2019
we could merge as-is, maybe add the expected output using comments. Utimately this is broken in PHP:https://3v4l.org/reb5N however we may want to look at
|
ro0NL commentedJul 18, 2019
Oh, and here's the interesting part: as of 7.4 this seems fixed at the escape level: |
ro0NL commentedJul 18, 2019
Im not sure what the point of
|
nicolas-grekas commentedJul 18, 2019
I'm not for merging a PR that proves a PHP bug... |
fabpot commentedJul 18, 2019
I agree with@nicolas-grekas |
ro0NL commentedJul 18, 2019
I think the solution is to change the default escape char from after#32289, we can test targeting php 7.4 as well. I'll look into this 👍 |
ro0NL commentedJul 18, 2019
Right, we cant use 'empty string' on older PHP versions :)
we always hit the issue if the last char in a cell value is the escaping character https://3v4l.org/3NIb6 (fixes trailing slash by using tilde as escape char) So i think the only way is to update the escape char in master for php 7.4 to an empty string. |
nicolas-grekas commentedJul 18, 2019
Why not 3.4? PHP 7.4 will be supported there too. |
fabpot commentedSep 25, 2019
What's the status here? |
ro0NL commentedSep 28, 2019
@fabpot@nicolas-grekas all good 👍 |
ro0NL commentedSep 28, 2019
note merging this in 4.3 requires a bit more work, let me know if you want a PR for that. |
Uh oh!
There was an error while loading.Please reload this page.
fabpot commentedSep 30, 2019
Thank you@ro0NL. |
This PR was squashed before being merged into the 3.4 branch (closes#32051).Discussion----------[Serializer] Add CsvEncoder tests for PHP 7.4| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | no| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? |no| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features -->Some CSV encoder tests to show the broken behavior of a trailing slash. Spotted in#31867, not sure what to do with it :)Commits-------760354d [Serializer] Add CsvEncoder tests for PHP 7.4
…0NL)This PR was merged into the 4.3 branch.Discussion----------[DI] Add CSV env var processor tests / support PHP 7.4| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features -->Similar as#32051Commits-------82f3418 [DI] Add CSV env var processor tests
This PR was squashed before being merged into the 3.4 branch (closessymfony#32051).Discussion----------[Serializer] Add CsvEncoder tests for PHP 7.4| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | no| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? |no| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features -->Some CSV encoder tests to show the broken behavior of a trailing slash. Spotted insymfony#31867, not sure what to do with it :)Commits-------760354d [Serializer] Add CsvEncoder tests for PHP 7.4
Some CSV encoder tests to show the broken behavior of a trailing slash. Spotted in#31867, not sure what to do with it :)