77272[TASK] Remove extension_loaded('hash') check
Commit message
Review
-
Code review CR +2 Done
- Anja Leichsenring +2
- Stefan Bürk +1
- Christoph Lehmann +1
-
Verified V +2 Done
- Anja Leichsenring +2
- Stefan Bürk +1
- core-ci +1 CI
Issues 1
Files 5
- typo3/sysext/core/Classes/Crypto/PasswordHashing/BcryptPasswordHash.php6+2 −5
- typo3/sysext/core/Classes/Crypto/PasswordHashing/Pbkdf2PasswordHash.php+1 −1
- typo3/sysext/core/Classes/Utility/GeneralUtility.php+1 −18
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php+1 −1
- typo3/sysext/install/Classes/SystemEnvironment/Check.php2+0 −1
Review log 1417
-
Christian Kuhn uploaded patch set 1 01/06/23, 08:59
-
core-ci voted on patch set 1 V +1 01/06/23, 09:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/35523
-
Christoph Lehmann commented on patch set 1 01/06/23, 09:43
Nice. What about its functions, see "function_exists('hash')" or "function_exists('hash" ? Should they stay for having better readable code or might it be better to remove them an get an Exception? -
Christoph Lehmann commented on patch set 1 01/06/23, 09:52
Check.php:70json is also built-in https://www.php.net/manual/en/extensions.membership.php no blocker but for completeness. -
Christian Kuhn uploaded patch set 2
V +101/06/23, 10:25 -
Christian Kuhn commented on patch set 1 01/06/23, 10:26
Reply
DoneCheck.php:70Replygood catch. should be another patch since ext-json then can be removed from composer.json files as well. -
core-ci voted on patch set 2 V +1 01/06/23, 10:33 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/35525
-
Stefan Bürk commented on patch set 2 01/06/23, 10:55
BcryptPasswordHash.php:71method doc not really correct now. (outdated).BcryptPasswordHash.php:77should we not keep the algo check at least ? -
Christian Kuhn uploaded patch set 3
V +101/06/23, 11:10 -
Christian Kuhn commented on patch set 2 01/06/23, 11:10
BcryptPasswordHash.php:71ReplyDoneBcryptPasswordHash.php:77Replyas far as i understand sha384 is a hard built-in along with the other sha algos. -
Christoph Lehmann commented on patch set 3 01/06/23, 11:11
BcryptPasswordHash.php:77ReplyIMHO when a unit/functional test requires/enforces that 'sha384' exists in hash_algos(), then it would be okay for me to drop the hash_algos() call. -
core-ci voted on patch set 3 V +1 01/06/23, 11:18 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/35527
-
Stefan Bürk commented on patch set 3 V +1 CR +1 01/06/23, 11:49
BcryptPasswordHash.php:77ReplyThat algo is hardcoded/included in php like the methods. They also kept really old algos. Removing the check here is okay, if they really removes it in 20 oder 30 years, it would be deprecated before. and detected. -
Christoph Lehmann voted on patch set 3 CR +1 01/06/23, 12:17
-
Anja Leichsenring voted on patch set 3 CR +2 01/06/23, 15:19
-
Anja Leichsenring voted on patch set 3 V +2 01/06/23, 15:19
-
Anja Leichsenring merged patch set 4 01/06/23, 15:20