Issue Task Closed

#105157Explicitly provide all `fgetcsv()` arguments

Stefan Bürk 09/29/24, 10:37 updated 09/29/24, 15:07

Description

PHP 8.4.0 RC1 emits E_DEPRECATED when the fifth paramater
@$escape@ is not explicitly set and the default value used
for fgetcsv()

See: https://github.com/php/php-src/blob/ebee8df27edf7ecfbdc7ff87662f2f0d30859120/UPGRADING#L617-L622

Using the default value for $escape parameter of:
 - fputcsv()
 - fgetcsv()
 - str_getcsv()
 is now deprecated. It must be passed explicitly either positionally or via named arguments.
 RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_proprietary_csv_escaping_mechanism

[1] https://github.com/php/php-src/pull/15569
2 https://github.com/php/php-src/blob/ebee8df27ed/UPGRADING#L617-L622

Reviews 1

History 12

  1. Gerrit Code Review pushed patch set 1 for main to change 86373 status New Under Review 09/29/24, 14:31

  2. Stefan Bürk commented and changed status Under Review Closed 09/29/24, 15:07

    Integrated into #105155, closing this issue now.