Repository navigation
Conversation
|
Please also test: |
|
Good catch. If it's deemed more reliable (and maybe a touch more performant), we may switch to a Edit: The failed checks seem to be unrelated flaky tests. |
TimWolla
left a comment
There was a problem hiding this comment.
I'm extremely uninterested in (re)introducing the use of sscanf(). The general direction of the industry is getting rid of it (see curl as an example).
|
Fair enough. Switched to a pure character validator. |
|
Quoted below: written with Claude, an LLM, as CONTRIBUTING.md asks us to mark. The builds and test runs behind it are on my machine; the commands to repeat them are under the fold.
|
Back to
sscanf()usage, but with ironclad sanity checks andphp_password_bcrypt_parse()can be used more explicitly as a validator, without attempting to extractcostfor the caller.Implements what I meant with #24203 (comment), somewhat with intent to also move this exception inside
php_password_bcrypt_get_cost(), but it's a breaking change:php-src/ext/standard/password.c
Lines 203 to 206 in 3c1a072