Skip to content

Conversation

@thomashohn
Copy link
Contributor

@thomashohn thomashohn commented Oct 21, 2025

What this pr does

Fixes deprecated PHP 8.4 calls to md5/sha1 with using hash instead

How to test

Automatic tests should cover these changes

Fixes: #4436

@thomashohn thomashohn closed this Oct 21, 2025
@thomashohn thomashohn reopened this Oct 21, 2025
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dkd-kaehm dkd-kaehm added BACKPORTABLE The changes SHOULD be backported and removed BACKPORTABLE The changes SHOULD be backported labels Oct 21, 2025
md5 and sha1 might get deprecated - it's cleaner/better to use that hash method and apply the algorithm there.

md5/sha1 should we rewritten to use the hash method:
https://wiki.php.net/rfc/deprecations_php_8_4
`
Users may replace the use of the standalone functions as follows if they still require the use of MD5 and SHA-1:

[md5](http://www.php.net/md5)($data, $binary = false) → [hash](http://www.php.net/hash)('md5', $data, $binary = false)
[sha1](http://www.php.net/sha1)($data, $binary = false) → [hash](http://www.php.net/hash)('sha1', $data, $binary = false)
[md5_file](http://www.php.net/md5_file)($filename, $binary = false) → [hash_file](http://www.php.net/hash_file)('md5', $filename, $binary = false)
[sha1_file](http://www.php.net/sha1_file)($filename, $binary = false) → [hash_file](http://www.php.net/hash_file)('sha1', $filename, $binary = false)`

Fixes: TYPO3-Solr#4436
@dkd-kaehm dkd-kaehm force-pushed the task-4436-replace-md5-sha1 branch from 62171c2 to 8804e28 Compare October 24, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Replace md5 and sha1 with hash as they might get depracted

2 participants