void-packages/srcpkgs/php8.3/patches/musl-crypt.patch
Joel Beckmeyer fcae88ce61 php8.3: update to 8.3.14.
- enable fpm ACLs
- clean up patches
- generate configure locally instead of using vendored for ease of
  patching
- add user for php-fpm instead of using uncreated `http` user
2024-11-23 12:28:58 +01:00

19 lines
542 B
Diff

TODO: This is apparently needed on musl, not sure what the error is, might be
something to dig in to.
--- a/ext/standard/crypt.c 2016-04-28 14:13:00.000000000 -0400
+++ b/ext/standard/crypt.c 2016-04-28 21:45:24.340955313 -0400
@@ -267,6 +267,12 @@
}
# elif defined(HAVE_CRYPT)
crypt_res = crypt(password, salt);
+ if (!crypt_res || (salt[0] == '*' && salt[1] == '0')) {
+ return NULL;
+ } else {
+ result = zend_string_init(crypt_res, strlen(crypt_res), 0);
+ return result;
+ }
# else
# error No crypt() implementation
# endif