php-src icon indicating copy to clipboard operation
php-src copied to clipboard

Inconsistent argument name in `hash-hmac-file` and `hash-file`

Open Rotzbua opened this issue 4 years ago • 3 comments

From manual page: https://php.net/function.hash-hmac-file


string $data, should be string $filename, to have the same naming scheme as hash-file().

Rotzbua avatar Dec 25 '21 21:12 Rotzbua

Oh, right, but that would need to be fixed in php-src first, and would be a BC break.

cmb69 avatar Dec 25 '21 21:12 cmb69

Documented via https://github.com/php/doc-en/commit/1adf24615e8be8049f68db37513e37dc631d49d1

cmb69 avatar Dec 26 '21 12:12 cmb69

@cmb69 Thanks 👍

Rotzbua avatar Dec 26 '21 18:12 Rotzbua