From 1c7ecfc54499d866b9913c135c0c7439634d8bb1 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 13 Apr 2022 10:52:26 +0200 Subject: Fix an issue with the search backend update And update autoloader Signed-off-by: Carl Schwan --- apps/user_ldap/composer/autoload.php | 5 +++++ apps/user_ldap/composer/composer/autoload_real.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/composer/autoload.php b/apps/user_ldap/composer/autoload.php index 24824c188e5..d1e331c189e 100644 --- a/apps/user_ldap/composer/autoload.php +++ b/apps/user_ldap/composer/autoload.php @@ -2,6 +2,11 @@ // autoload.php @generated by Composer +if (PHP_VERSION_ID < 50600) { + echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; + exit(1); +} + require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitUser_LDAP::getLoader(); diff --git a/apps/user_ldap/composer/composer/autoload_real.php b/apps/user_ldap/composer/composer/autoload_real.php index 0e1a6558e55..6f0c636e7d5 100644 --- a/apps/user_ldap/composer/composer/autoload_real.php +++ b/apps/user_ldap/composer/composer/autoload_real.php @@ -27,7 +27,7 @@ class ComposerAutoloaderInitUser_LDAP spl_autoload_unregister(array('ComposerAutoloaderInitUser_LDAP', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - \Composer\Autoload\ComposerStaticInitUser_LDAP::getInitializer($loader)(); + call_user_func(\Composer\Autoload\ComposerStaticInitUser_LDAP::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); -- cgit v1.2.3