Project

General

Profile

Task #105155

Updated by Stefan Bürk about 2 months ago

 
 PHP 8.4.0 RC1 emits E_DEPRECATED when the fourth paramater 
 @$escape@ `$escape` is not explicitly set and the default value used 
 for @str_getcsv()@. used. 

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

 <pre> 
 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 
 </pre> 

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

Back