1 --- php-5.6.40/configure.in~ 2024-03-13 20:25:10.000000000 +0100
2 +++ php-5.6.40/configure.in 2024-03-13 20:36:57.496650674 +0100
3 @@ -610,7 +610,6 @@ asctime_r \
11 @@ -689,6 +688,11 @@ asprintf \
15 +AC_SEARCH_LIBS([crypt], [crypt], [
16 + LIBS="$LIBS -lcrypt"
17 + AC_DEFINE(HAVE_CRYPT, 1, [ ])
20 dnl Some systems (like OpenSolaris) do not have nanosleep in libc
21 PHP_CHECK_FUNC_LIB(nanosleep, rt)
23 @@ -757,7 +761,7 @@ PHP_TIME_R_TYPE
27 -AC_CHECK_FUNCS(crypt_r, [ php_crypt_r="1" ], [ php_crypt_r="0" ])
28 +AC_SEARCH_LIBS(crypt_r, crypt, [ php_crypt_r="1" ], [ php_crypt_r="0" ])
29 if test "x$php_crypt_r" = "x1"; then
32 --- php-5.6.40/ext/standard/config.m4~ 2019-01-09 10:54:13.000000000 +0100
33 +++ php-5.6.40/ext/standard/config.m4 2024-03-13 21:03:19.596650607 +0100
34 @@ -69,6 +69,8 @@ AC_CACHE_CHECK(for standard DES crypt, a
42 char *encrypted = crypt("rasmuslerdorf","rl");
43 @@ -94,6 +96,8 @@ AC_CACHE_CHECK(for extended DES crypt, a
51 char *encrypted = crypt("rasmuslerdorf","_J9..rasm");
52 @@ -119,6 +123,8 @@ AC_TRY_RUN([
60 char salt[15], answer[40];
61 @@ -154,6 +160,8 @@ AC_TRY_RUN([
69 char salt[30], answer[70];
70 @@ -186,6 +194,8 @@ AC_TRY_RUN([
78 char salt[21], answer[21+86];
79 @@ -217,6 +227,8 @@ AC_TRY_RUN([
87 char salt[21], answer[21+43];