summaryrefslogtreecommitdiffstats
path: root/php-8.4.0-ldap_r.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-23 15:31:00 +0200
committerRemi Collet <remi@php.net>2024-09-23 15:31:00 +0200
commit740a14090dec83951484a2705d7ffc7555ebb768 (patch)
tree7768a1c01872b781aaa4d530dd0cac8fe3bd7e3d /php-8.4.0-ldap_r.patch
parent16b62b61c0de11f9b89c4805a9b37e9bbc2ec12f (diff)
update to 8.4.0beta5
drop oci8, pdo_oci8, pspell and imap extensions disable ZTS build
Diffstat (limited to 'php-8.4.0-ldap_r.patch')
-rw-r--r--php-8.4.0-ldap_r.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/php-8.4.0-ldap_r.patch b/php-8.4.0-ldap_r.patch
new file mode 100644
index 0000000..a574751
--- /dev/null
+++ b/php-8.4.0-ldap_r.patch
@@ -0,0 +1,19 @@
+
+Use -lldap_r by default.
+
+diff -up php-8.4.0beta1/ext/ldap/config.m4.ldap_r php-8.4.0beta1/ext/ldap/config.m4
+--- php-8.4.0beta1/ext/ldap/config.m4.ldap_r 2024-08-13 15:48:12.000000000 +0200
++++ php-8.4.0beta1/ext/ldap/config.m4 2024-08-13 16:23:24.744311776 +0200
+@@ -72,7 +72,11 @@ if test "$PHP_LDAP" != "no"; then
+ AH_TEMPLATE([HAVE_ORALDAP],
+ [Define to 1 if the ldap extension uses the Oracle Instant Client.])
+
+- if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then
++ if test -f $LDAP_LIBDIR/libldap_r.$SHLIB_SUFFIX_NAME; then
++ PHP_ADD_LIBRARY_WITH_PATH(lber, [$LDAP_LIBDIR], [LDAP_SHARED_LIBADD])
++ PHP_ADD_LIBRARY_WITH_PATH(ldap_r, [$LDAP_LIBDIR], [LDAP_SHARED_LIBADD])
++
++ elif test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then
+ PHP_ADD_LIBRARY_WITH_PATH([lber], [$LDAP_LIBDIR], [LDAP_SHARED_LIBADD])
+ PHP_ADD_LIBRARY_WITH_PATH([ldap], [$LDAP_LIBDIR], [LDAP_SHARED_LIBADD])
+