- Issue created by @andypost
- Merge request !9649Fix usage of str_getcsv() and fgetcsv() for PHP 8.4 #3477324 β (Closed) created by andypost
- π«π·France andypost
Closed as duplicate π Fix str_getcsv() usage for PHP 8.4 Active
- πΊπΈUnited States smustgrave
Seems straight forward enough and caused no failures
- π¬π§United Kingdom alexpott πͺπΊπ
Reading https://www.php.net/manual/en/function.fgetcsv.php
Warning
When escape is set to anything other than an empty string ("") it can result in CSV that is not compliant with Β» RFC 4180 or unable to survive a roundtrip through the PHP CSV functions. The default for escape is "\\" so it is recommended to set it to the empty string explicitly. The default value will change in a future version of PHP, no earlier than PHP 9.0.I think we need a followup to change our default to an empty string or at least to discuss whether we should change this.
- π¬π§United Kingdom alexpott πͺπΊπ
I think we should change the test and demo_umami usages here to the future default as this will not cause issues. We also should file the follow-up for the mailer plugin usages now. FWIW I'm pretty sure that changing escape to '' will be harmless but it seems worth doing in a separate issue.
- π«π·France andypost
Thanks Alex! Filed follow-up π Change default escaping of str_getcsv() and fgetcsv() to empty string Active
Applied suggestions for demo and test
- πΊπΈUnited States smustgrave
Believe feedback for this one has been addressed
- π«π·France andypost
I think it backportable to 10.4.x to keep compatibility
- π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed 9cf58fe16c5 to 11.x and 8fc8778c8c5 to 11.1.x and 2e7842f8e51 to 11.0.x and 72b464b48bf to 10.5.x and 35d9969bc56 to 10.4.x and b5c897f4ab1 to 10.3.x. Thanks!
-
alexpott β
committed b5c897f4 on 10.3.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed b5c897f4 on 10.3.x
-
alexpott β
committed 35d9969b on 10.4.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed 35d9969b on 10.4.x
-
alexpott β
committed 72b464b4 on 10.5.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed 72b464b4 on 10.5.x
-
alexpott β
committed 2e7842f8 on 11.0.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed 2e7842f8 on 11.0.x
-
alexpott β
committed 8fc8778c on 11.1.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed 8fc8778c on 11.1.x
-
alexpott β
committed 9cf58fe1 on 11.x
Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and...
-
alexpott β
committed 9cf58fe1 on 11.x
- Status changed to Fixed
19 days ago 10:44am 3 December 2024 Automatically closed - issue fixed for 2 weeks with no activity.