Package: oar-web-status
Version: 2.5.9-1
Severity: important

Dear Maintainer,

   * What led up to the situation?
   Upgrade to Debian 12
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   Restart apache2 with php8.2 modules enabled
   * What was the outcome of this action?
   The url drawgantt/drawgantt.php never display any data
   * What outcome did you expect instead?
   Normal display of the drawgantt tool

In fact the file /usr/share/oar-web-status/drawgantt-svg/drawgantt-svg.php use line 606 a deprecated PHP function
usort($this->children, create_function('$a,$b','return $b->cmp($a);'));

create_function has been removed in php8.0 and further versions : "Warning This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged".
see https://www.php.net/manual/en/function.create-function.php

This may be the root cause of the bug


-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-18-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages oar-web-status depends on:
ii  apache2 [httpd-cgi]       2.4.57-2
ii  libappconfig-perl         1.71-2.2
ii  libdbd-pg-perl            3.16.0-2
ii  libdbi-perl               1.643-4
ii  libsort-naturally-perl    1.03-4
ii  libtie-ixhash-perl        1.23-4
ii  perl                      5.36.0-7+deb12u1
ii  php                       2:8.2+93
ii  php-pgsql                 2:8.2+93
ii  php8.2 [php]              8.2.7-1~deb12u1
ii  php8.2-pgsql [php-pgsql]  8.2.7-1~deb12u1

oar-web-status recommends no packages.

Versions of packages oar-web-status suggests:
pn  oar-doc  <none>

-- no debconf information
--
Jean Louis Mas

Attachment: OpenPGP_0xECE0A0796958DB8E.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to