#1118972 mlmmj-php-web: PHP changes have caused the script to no longer do anything

Package:
mlmmj-php-web
Source:
mlmmj-php-web
Submitter:
Ron Guerin
Date:
2025-11-27 19:51:03 UTC
Severity:
normal
Tags:
#1118972#5
Date:
2025-10-25 22:53:38 UTC
From:
To:
Dear Maintainer,

This script uses a PHP4-style class constructor, which was backward compatible
in PHP 5, but no longer works in PHP 7 or 8.  It doesn't cause it to throw
errors, it just causes nothing to actually happen when the script runs.

Fortunately, this is an extremely trivial thing to fix.  I am providing a patch
that resolves this issue.
--- /usr/share/mlmmj-php-web/mlmmj.php/mlmmj.php.orig	2025-06-07 23:42:07.000000000 -0400
+++ /usr/share/mlmmj-php-web/mlmmj.php/mlmmj.php	2025-10-12 14:06:56.460328471 -0400
@@ -53,7 +53,7 @@
 //	    die($string);
 	}

-    function mlmmj()
+    function __construct()
 	{
 	    // set mandatory vars...
 	    $this->errors = FALSE;

Additionally...
The README file disributed with Trixie for this package is the wrong one.
The file in Trixie's /usr/share/doc/mlmmj-php-web is actually the one from the
mlmmj-php-web-admin package.  The README found in the Bookworm package is
the correct README for mlmmj-php-web

#1118972#10
Date:
2025-11-25 01:28:39 UTC
From:
To:
Hello Ron.

Thanks, this applied immediately, just like the other patch
(applied to source package file contrib/web/php-user/mlmmj.php)

I'll see if I can figure out what happened here. The source of MLMMJ was
different from Bookworm to Trixie due to a new upstream maintainer
taking over.

    -- Chris

Chris Knadle
Chris.Knadle@coredump.us

#1118972#15
Date:
2025-11-27 19:48:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mlmmj, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1118972@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Knadle <Chris.Knadle@coredump.us> (supplier of updated mlmmj package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 27 Nov 2025 14:14:03 -0500
Source: mlmmj
Architecture: source
Version: 1.6.0-1
Distribution: unstable
Urgency: medium
Maintainer: Christopher Knadle <Chris.Knadle@coredump.us>
Changed-By: Christopher Knadle <Chris.Knadle@coredump.us>
Closes: 1109184 1118969 1118971 1118972
Changes:
 mlmmj (1.6.0-1) unstable; urgency=medium
 .
   * Newer upstream release 1.6.0
   * debian/patches:
     - Thanks to Ron Guerin <ron@vnetworx.net> for reporting bugs 1118969,
       1118971, 1118972, and including three patches added below
     - Add 10_fix-php-web-tunables.diff to fix a syntax error in Perl code in
       the PHP script eval()s
       (Closes: #1118969)
     - Add 12_fix-mlmmj-php.diff to fix PHP4-style class constructor for
       PHP 7 and 8
       (Closes: #1118972)
     - Add 14_fix-htaccess.diff to update .htaccess file for PHP-FPM and PHP-CGI
       (Closes: #1118971)
     - Removed 07_fix-crontab-suggestions.diff: src/mlmmj-make-ml rewrtten,
       the patch no longer applies
     - Removed 08_fix-ftbfs-bug.diff: obsolete - mlmmj 1.6.0 incorporates the
       changes made in patch
   * debian/po/ca.po:
     - Add new Catlan translation file
       Thanks to Carles Pina i Estany <carles@pina.cat> for the translation
       (Closes: #1109184)
Checksums-Sha1:
 a622cfa558138f4c29005721c223107b8801d8c5 2125 mlmmj_1.6.0-1.dsc
 d278caeee6ce3cca65a036a40c342da1bafc6ade 244135 mlmmj_1.6.0.orig.tar.gz
 50052dde77561ec4b103353d09b1b66eed274848 26456 mlmmj_1.6.0-1.debian.tar.xz
 794bce9493acf94d8967cdf3be18da2720599dcd 6166 mlmmj_1.6.0-1_source.buildinfo
Checksums-Sha256:
 c55673c1a7671756cb5ce6692c6ece635bea728deb748f111b3f1a305eca8026 2125 mlmmj_1.6.0-1.dsc
 6b18526bbcbba3f5d29f13abc8ea532d14423120ff5bfe1e0fdffd285895863f 244135 mlmmj_1.6.0.orig.tar.gz
 4b4744e24d304a52cb2205569e8ad7873f0cd881080a5d3087bd4d7fc72da45e 26456 mlmmj_1.6.0-1.debian.tar.xz
 7fbb16f03654b0901899fa899da0fb9acfa0030e1aa6156ce7d9b0ad3abb8be8 6166 mlmmj_1.6.0-1_source.buildinfo
Files:
 65d4739387fe23496bd10c8346bd6308 2125 mail optional mlmmj_1.6.0-1.dsc
 e60718168a7f5adc4726dabf2d503a55 244135 mail optional mlmmj_1.6.0.orig.tar.gz
 99ad94086dee25e344e179201593f977 26456 mail optional mlmmj_1.6.0-1.debian.tar.xz
 38e30ac4dcf52e1c5df9fe5db9126329 6166 mail optional mlmmj_1.6.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEe1KzyGmRW/4DhtV6ieLKD9m6RHAFAmkoozQACgkQieLKD9m6
RHA1IA//SSoptz8+bPoESps+OGiN/DfCQkxNNft9wIpsQZp3u3s0uJHmAAAWNRua
2sZimrI53uFhLSrjALQuI1NhEghegG7BJp61uHuXrzgC3cpF0ByBZPk7djrGof+M
la3e+DEww9/VeyoiJmirHbKdl6mk5XqkiRmWlFPYq/2iDl5kLYHdJHQzhKgZrFJP
a5Om4tiI59/vUsXRi2gVOEfpu6OInXRlty+Ghulu/azplHTF7AZaDICAq7HfgVLU
VyYZ+gNdXE2Z5Rpvo+sbz7iV6/8d8NnRwA8djePgAjdBg9bqXfCq8/nUB9gHmXmY
zUdLvhK8xsQYb9AYQaqiUuuFN9KJ2VIxiXOKGvZ+IvGQ1vG4RGd53GgckP/Nm9ia
bqXDwdaGPpNuZ0MC+8jioH2vCNkXrefXmiUPCVkUNhjP/MjFwJLIKOEsVxfUHTkt
DdMjz47ZKDc8kVojqbOJPLIAsERi8YbocU8rzZJbNrBnJ74vN96hXbbGXbt006Rv
wNvf6X8JCW5b8k+sMGTTMbtw2MlCM0nlpcJ8ETzycqWpFJ41FLOrYjgDoEIKQ2xa
yp3F2e5XSJK0ETqRxsZssmDBdmLG2WtyhWeiITsTknyIAlLzp+xjKKrMMJKjeodg
dwKtt+bkxsQ1ITutfQBnNVlquGkfvptOAiLwsWO8UpyCOum+XmE=
=HZT0
-----END PGP SIGNATURE-----