Open
Description
Description
Function ftp_mlsd
started returning array with different key case: "name" is still "name", but "type" became "Type" and "modify" became "Modify".
I assume ftp_mlsd
returns data as provided by the FTP server and this change was a consequence of our hosting provider modifying the software on FTP server, and not a consequence of changes in PHP.
RFC 3659 states in section 7.5 that fact names are case-insensitive, but because PHP array keys are not, changes like this break the code.
I suggest casing of array keys is unified (always "type" or always "Type").