File: 12_fix-mlmmj-php.diff

package info (click to toggle)
mlmmj 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,560 kB
  • sloc: ansic: 13,223; php: 1,337; perl: 904; sh: 501; makefile: 99
file content (17 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Patch to fix a PHP4-style class constructor, which was backward
 compatible in PHP 5, but no longer works in PHP 7 or 8.
Author: Ron Guerin <ron@vnetworx.net>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1118972
Last-Update: 2025-11-24

--- a/contrib/web/php-user/mlmmj.php
+++ b/contrib/web/php-user/mlmmj.php
@@ -53,7 +53,7 @@
 //	    die($string);
 	}
 
-    function mlmmj()
+    function __construct()
 	{
 	    // set mandatory vars...
 	    $this->errors = FALSE;