/usr/share/phpldapadmin/lib/functions.php on line 54
change line 54 to "function my_autoload($className) {"
Add this code "spl_autoload_register("my_autoload");" on line 777
/usr/share/phpldapadmin/lib/functions.php on line 1083
change line 1083 to "$CACHE[$sortby] = __create_function('$a, $b',$code);"
add the code below from the
http://php.net/manual/pt_BR/function.create-function.php page on line 1091
function __create_function($arg, $body) {
static $cache = array();
static $maxCacheSize = 64;
static $sorter;
if ($sorter === NULL) {
$sorter = function($a, $b) {
if ($a->hits == $b->hits) {
return 0;
}
return ($a->hits < $b->hits) ? 1 : -1;
};
}
$crc = crc32($arg . "\\x00" . $body);
if (isset($cache[$crc])) {
++$cache[$crc][1];
return $cache[$crc][0];
}
if (sizeof($cache) >= $maxCacheSize) {
uasort($cache, $sorter);
array_pop($cache);
}
$cache[$crc] = array($cb = eval('return
function('.$arg.'){'.$body.'};'), 0);
return $cb;
}
for me it works.
On Sun, 11 Feb 2018 12:54:31 +0100 "T.A. van Roermund"
<t...@van-roermund.nl> wrote:
> Package: phpldapadmin
> Version: 1.2.2-6.1
> Severity: normal
>
> Dear Maintainer,
>
> I'm using phpLDAPadmin ... together with PHP 7.2 and I noticed the
following warnings are thrown:
>
> Deprecated: __autoload() is deprecated, use spl_autoload_register()
instead in /usr/share/phpldapadmin/lib/functions.php on line 54
>
> Deprecated: Function create_function() is deprecated in
/usr/share/phpldapadmin/lib/functions.php on line 1083
>
> It's not critical, as phpLDAPadmin still works fine.
> But that may of course change with future PHP versions.
>
> Best regards,
>
> Timo
>
>
> -- System Information:
> Debian Release: buster/sid
> APT prefers testing
> APT policy: (990, 'testing'), (500, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.14.0-3-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages phpldapadmin depends on:
> ii debconf [debconf-2.0] 1.5.65
> ii php 1:7.2+60
> ii php-ldap 1:7.2+60
> ii php7.2 [php] 7.2.2-1
> ii php7.2-ldap [php-ldap] 7.2.2-1
> ii ucf 3.0036
>
> phpldapadmin recommends no packages.
>
> phpldapadmin suggests no packages.
>
>