summaryrefslogtreecommitdiff
path: root/pkgs/webapps/phpldapadmin/ldap-php7_2.patch
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-05 17:30:37 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-25 00:04:40 +0200
commit09bb25b913728f09ef5515de880a7914988f56cb (patch)
tree9cb020e57eb0fd974b44cead268988f8af9d4629 /pkgs/webapps/phpldapadmin/ldap-php7_2.patch
parent7e50b8651e0484fed2aa929d30dc7e27b4dc1121 (diff)
downloadNUR-09bb25b913728f09ef5515de880a7914988f56cb.tar.gz
NUR-09bb25b913728f09ef5515de880a7914988f56cb.tar.zst
NUR-09bb25b913728f09ef5515de880a7914988f56cb.zip
Upgrade phpLDAPAdmin to a fork
Diffstat (limited to 'pkgs/webapps/phpldapadmin/ldap-php7_2.patch')
-rw-r--r--pkgs/webapps/phpldapadmin/ldap-php7_2.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/pkgs/webapps/phpldapadmin/ldap-php7_2.patch b/pkgs/webapps/phpldapadmin/ldap-php7_2.patch
deleted file mode 100644
index 40ee0555..00000000
--- a/pkgs/webapps/phpldapadmin/ldap-php7_2.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1diff -wbBur phpldapadmin.org/lib/functions.php phpldapadmin/lib/functions.php
2--- phpldapadmin.org/lib/functions.php 2017-02-02 10:03:58.000000000 -0700
3+++ phpldapadmin/lib/functions.php 2018-01-23 06:18:31.118312887 -0700
4@@ -51,7 +51,7 @@
5 /**
6 * Loads class definition
7 */
8-function __autoload($className) {
9+spl_autoload_register(function($className) {
10 if (file_exists(HOOKSDIR."classes/$className.php"))
11 require_once(HOOKSDIR."classes/$className.php");
12 elseif (file_exists(LIBDIR."$className.php"))
13@@ -64,7 +64,7 @@
14 'body'=>sprintf('%s: %s [%s]',
15 __METHOD__,_('Called to load a class that cant be found'),$className),
16 'type'=>'error'));
17-}
18+});
19
20 /**
21 * Strips all slashes from the specified array in place (pass by ref).
22@@ -1083,7 +1083,7 @@
23
24 $code .= 'return $c;';
25
26- $CACHE[$sortby] = create_function('$a, $b',$code);
27+ eval("\$CACHE[\$sortby] = function(\$a, \$b) { $code; };");
28 }
29
30 uasort($data,$CACHE[$sortby]);