Using Moodle 4.4 dev (PHP 8.1-8.3 checked).

- Blue, reviewed, all ok.
- Red, requires action.

FILE: /repository/s3/S3.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------------------------------------
  357 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
  374 | WARNING | Method name "S3::__triggerError" is discouraged; PHP has reserved all method names with a double underscore
      |         | prefix for future use.
 1615 | WARNING | Method name "S3::__getCloudFrontInvalidationBatchXML" is discouraged; PHP has reserved all method names with a
      |         | double underscore prefix for future use.
 1696 | WARNING | Method name "S3::__getCloudFrontDistributionConfigXML" is discouraged; PHP has reserved all method names with a
      |         | double underscore prefix for future use.
 1736 | WARNING | Method name "S3::__parseCloudFrontDistributionConfig" is discouraged; PHP has reserved all method names with a
      |         | double underscore prefix for future use.
 1796 | WARNING | Method name "S3::__getCloudFrontResponse" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 1829 | WARNING | Method name "S3::__getMIMEType" is discouraged; PHP has reserved all method names with a double underscore prefix
      |         | for future use.
 1878 | WARNING | Method name "S3::__getTime" is discouraged; PHP has reserved all method names with a double underscore prefix for
      |         | future use.
 1891 | WARNING | Method name "S3::__getSignature" is discouraged; PHP has reserved all method names with a double underscore
      |         | prefix for future use.
 1906 | WARNING | Method name "S3::__getHash" is discouraged; PHP has reserved all method names with a double underscore prefix for
      |         | future use.
 2298 | WARNING | Method name "S3Request::__sortMetaHeadersCmp" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2316 | WARNING | Method name "S3Request::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2332 | WARNING | Method name "S3Request::__dnsBucketName" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2351 | WARNING | Method name "S3Request::__responseHeaderCallback" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
------------------------------------------------------------------------------------------------------------------------------------
^^^
All those changes are "discouraged" but not forbidden. Hence, no action needed. The openssl_free_key() is protected with PHP check.

FILE: /auth/cas/CAS/vendor/apereo/phpcas/source/CAS/GracefullTerminationException.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 64 | WARNING | When exit() is called within an object constructor, the object destructor will no longer be called since PHP 8.0
    |         | While no __destruct() method was found in this class, one may be declared in the parent class or in a trait being
    |         | used.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: All ok, there isn't any __destruct(), and parent class is PHP's core one (no destruct either). This was also in previous reports.

FILE: /admin/renderer.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 984 | ERROR | Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4 and is
     |       | removed since PHP 8.0; $glue should be the first parameter and $pieces the second
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, it's correct, just the $glue is too big. This was also in previous reports.

FILE: /admin/cli/mysql_collation.php
------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
  60 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 153 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 233 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 256 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, all the functions detected above are Moodle ones, not extension ones. This was also in previous reports.

FILE: /admin/tool/mfa/factor/totp/extlib/Assert/Assertion.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 2799 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$message" was used, and
      |         | possibly changed (by reference), on line 2798.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical. As far as the $message is only used to report exception details, it shouldn't be an execution problem.

FILE: /enrol/lti/ims-blti/OAuth.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------
 162 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
 185 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: Already fixed by MDL-73523 . They are conditional. This was also in previous reports.

FILE: /enrol/self/bulkchangeforms.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be
   |         | using short open tags but PHP does not allow them.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Empty file. All ok, so far. This was also in previous reports.

FILE: /grade/export/lib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 77 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed
    |         | to a parameter, but will instead provide the current value. The parameter "$formdata" was used, and possibly
    |         | changed (by reference), on line 76.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive. $formdata is not modified before the func_get_args() call. This was also in previous reports.

FILE: /mnet/lib.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
 449 | WARNING | Function openssl_x509_free() is deprecated since PHP 8.0
 461 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
--------------------------------------------------------------------------
^^^
Note: openssl already fixed by MDL-73523 . They are conditional. This was also in previous reports.

FILE: /search/classes/document_factory.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 68 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0.
    |       | Use curly braces to remove ambiguity.
 73 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0.
    |       | Use curly braces to remove ambiguity.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It just works ok, not the more beautiful in the world, but works. Nothing to do. This was also in previous reports.

FILE: /lib/plist/classes/CFPropertyList/CFBinaryPropertyList.php
--------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 363 | ERROR | Function recode_string() is removed since PHP 7.4; Use the iconv or mbstring extension instead
 363 | ERROR | Extension 'recode' is removed since PHP 7.4; Use iconv or mbstring instead
--------------------------------------------------------------------------------------------------------------
^^^
Note: It's conditional, using function_exists(). False positive. This was also in previous reports.

FILE: /lib/tcpdf/include/tcpdf_static.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------------------
  427 | ERROR   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL
      |         | instead
  427 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  427 | ERROR   | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  427 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  427 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  427 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  427 | ERROR   | The constant "MCRYPT_RAND" is deprecated since PHP 7.1 and removed since PHP 7.2
  428 | ERROR   | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  428 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  428 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  428 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  453 | ERROR   | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  453 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  453 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  453 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  454 | ERROR   | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  454 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  454 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  454 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  471 | ERROR   | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  471 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  471 | ERROR   | The constant "MCRYPT_ARCFOUR" is deprecated since PHP 7.1 and removed since PHP 7.2
  471 | ERROR   | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.2
 1828 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
 1964 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: The mcrypt uses are conditional, only if openssl (that is mandatory) is not available. So all ok. This was also in previous reports.
Note: The safe_mode conditions always evaluate to false, they should be removed upstream. So all ok. This was also in previous reports.

FILE: /lib/tcpdf/tcpdf.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 11007 | ERROR | Function mcrypt_get_cipher_name() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 11007 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
       |       | once available instead
 11007 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
 16449 | ERROR | Self-closing XHTML tags are ignored. Only non-self-closing tags should be used in the strip_tags() $allowed_tags
       |       | parameter since PHP 5.3.4. Found:
       |       | '<marker/><a><b><blockquote><body><br><br/><dd><del><div><dl><dt><em><font><form><h1><h2><h3><h4><h5><h6><hr><hr/><i><img><input><label><li><ol><option><p><pre><s><select><small><span><strike><strong><sub><sup><table><tablehead><tcpdf><td><textarea><th><thead><tr><tt><u><ul>'
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: mcrypt use is conditional, if the extension is loaded, hence, all ok. This was also in previous reports.
Note: the strip_tags() use includes some self-closing (img...) tags, so they will be ignored. Wrong, but behaviour is not altered. This was also in previous reports.

FILE: /lib/pear/HTML/QuickForm.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 613 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed
     |         | to a parameter, but will instead provide the current value. The parameter "$element" was used, and possibly
     |         | changed (by reference), on line 609.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, $element is not used, because the array is sliced. This was also in previous reports.

FILE: /lib/pear/PEAR.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------
  55 | ERROR   | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 720 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
 737 | WARNING | Function dl() is deprecated since PHP 5.3
 737 | WARNING | Function dl() is deprecated since PHP 5.3
 859 | ERROR   | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
     |         | passed to a parameter, but will instead provide the current value. The parameter "$mode" was changed on line 845.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: The track_errors use doesn't hurt. This was also in previous reports.
Note: dl() is conditional (function_exists()) covered, so all ok. This was also in previous reports.
Note: $mode may be modified, but it doesn't hurt to get the modified (effective) value in the debug_backtrace(). This was also in previous reports.

FILE: /lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Security/XmlScanner.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 74 | WARNING | Function libxml_disable_entity_loader() is deprecated since PHP 8.0
 88 | WARNING | Function libxml_disable_entity_loader() is deprecated since PHP 8.0
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Ignorable, the 2 uses are conditional. This was also in previous reports.

FILE: /lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
 318 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
----------------------------------------------------------------------------------------------------------------------------
^^^ Ok, it's protected with the silence (@) operator. This was also in previous reports.

FILE: /lib/phpmailer/src/PHPMailer.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------
  861 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
 1487 | ERROR   | The constant "INTL_IDNA_VARIANT_2003" is deprecated since PHP 7.2 and removed since PHP 8.0
 4774 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
 4780 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
---------------------------------------------------------------------------------------------------------------
^^^
Note: The use of mbstring.func_overload doesn't have any effect. Will always return false. This was also in previous reports.
Note: If INTL_IDNA_VARIANT_UTS46 is defined, it's used always. So all right. This was also in previous reports.
Note: The openssl_pkey_free() are conditional, so all ok. This was also in previous reports.

FILE: /lib/adodb/adodb-pear.inc.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 370 | WARNING | Function dl() is deprecated since PHP 5.3
----------------------------------------------------------------------
^^^
Note: Related to old drivers that we don't use. Our big 5 (mariadb, mysql, oracle, postgres and sqlsrv) are working ok and are covered, so NP. This was also in previous reports.

FILE: /lib/adodb/adodb-lib.inc.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1313 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$ishtml" was used, and possibly
      |         | changed (by reference), on line 1295.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical. This was also in previous reports.

FILE: /lib/adodb/drivers/adodb-fbsql.inc.php
-----------------------------------------------------------------------------
FOUND 43 ERRORS AFFECTING 23 LINES
-----------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-sybase.inc.php
----------------------------------------------------------------------------------
FOUND 36 ERRORS AFFECTING 18 LINES
----------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-informix72.inc.php
----------------------------------------------------------------------------------
FOUND 25 ERRORS AFFECTING 25 LINES
----------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-oracle.inc.php
------------------------------------------------------------------------------
FOUND 30 ERRORS AFFECTING 27 LINES
------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-ldap.inc.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-borland_ibase.inc.php
-------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-sqlitepo.inc.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-mssql.inc.php
-------------------------------------------------------------------------------
FOUND 77 ERRORS AFFECTING 41 LINES
-------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-firebird.inc.php
--------------------------------------------------------------------------------
FOUND 36 ERRORS AFFECTING 35 LINES
--------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-ibase.inc.php
----------------------------------------------------------------------------------
FOUND 76 ERRORS AFFECTING 42 LINES
----------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-mssqlpo.inc.php
-------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-sqlite.inc.php
------------------------------------------------------------------------------
FOUND 40 ERRORS AFFECTING 22 LINES
------------------------------------------------------------------------------
FILE: /lib/adodb/adodb-xmlschema.inc.php
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
FILE: /lib/adodb/adodb-time.inc.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/adodb-pager.inc.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
FILE: /lib/adodb/adodb-xmlschema03.inc.php
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
^^^
Note: The majority of problems correspond to old drivers that we don't use. This was also in previous reports.
Note: We are, right not, using ADOdb 5.22.6 that supports PHP 8.2 officially. This was also in previous reports.
Note: Link: https://adodb.org/dokuwiki/doku.php?id=v5:php_compatibility_status This was also in previous reports.
Note: Any problem with any database out from our big five, should be fixed under demand. This was also in previous reports.
Note: We are currently covering our uses (auth and enrol database plugins). This was also in previous reports.
Recommendation: We should move the auth and enrol database plugins to use moodle_database, ideally removing ADOdb completely.
Link: https://tracker.moodle.org/browse/MDL-68065
AdoDB related issues: https://tracker.moodle.org/issues/?jql=resolution%20%3D%20Unresolved%20AND%20text%20~%20%22%2Badodb%22

FILE: /lib/portfoliolib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 814 | ERROR | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed
     |       | to a parameter, but will instead provide the current value. The parameter "$plugin" was changed on line 808.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, $plugin is not used, because the args are shifted. This was also in previous reports.

FILE: /lib/modinfolib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------
  180 | WARNING | Method name "course_modinfo::__empty" is discouraged; PHP has reserved all method names with a double underscore
      |         | prefix for future use.
 1718 | WARNING | Method name "cm_info::__empty" is discouraged; PHP has reserved all method names with a double underscore prefix
      |         | for future use.
 3323 | WARNING | Method name "section_info::__empty" is discouraged; PHP has reserved all method names with a double underscore
      |         | prefix for future use.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: All these changes are "discouraged" but not forbidden. Hence, no action needed, though we should fix them, apart from the Epic is ok. This was also in previous reports.

FILE: /lib/simplepie/src/SimplePie.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  695 | ERROR   | When die() is called within an object constructor, the object destructor will no longer be called since PHP 8.0
 3103 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$method" was used, and possibly
      |         | changed (by reference), on line 3093.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: No problem, the die() only happens for PHP < 5.6. This was also in previous reports.
Note: No problem, we don't mind the accurateness of the variables. This was also in previous reports.

FILE: /lib/simplepie/src/Item.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 755 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
--------------------------------------------------------------------------------------------------------------------
^^^
Note: This was already checked by MDL-77103. All right. This was also in previous reports.

FILE: /lib/html2text/Html2Text.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 241 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed
     |         | to a parameter, but will instead provide the current value. The parameter "$options" was used, and possibly
     |         | changed (by reference), on line 240.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive. The $options parameter is not modified before calling to func_get_args(). This was also in previous reports.

FILE: /lib/google/src/Google/Signer/P12.php
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
 80 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
----------------------------------------------------------------------------
^^^
Note: Already fixed by MDL-73523 . They are conditional. This was also in previous reports.

FILE: /lib/google/src/Google/Verifier/Pem.php
------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------
 56 | WARNING | Function openssl_x509_free() is deprecated since PHP 8.0
------------------------------------------------------------------------------
^^^
Note: No problem. They are conditional. This was also in previous reports.

FILE: /lib/dml/moodle_database.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 528 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
     |         | passed to a parameter, but will instead provide the current value. The parameter "$error" was used, and possibly
     |         | changed (by reference), on line 518.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the $error parameter is not modified before the call to debug_backtrace(). This was also in previous reports.

FILE: /lib/graphlib.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------------
 1589 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
 1596 | WARNING | The "num_points" parameter for function ImagePolygon() is deprecated since PHP 8.1
 1603 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
 1610 | WARNING | The "num_points" parameter for function ImagePolygon() is deprecated since PHP 8.1
 1709 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
 1710 | WARNING | The "num_points" parameter for function ImagePolygon() is deprecated since PHP 8.1
 1733 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
 1740 | WARNING | The "num_points" parameter for function ImagePolygon() is deprecated since PHP 8.1
 1841 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
 1858 | WARNING | The "num_points" parameter for function ImageFilledPolygon() is deprecated since PHP 8.1
-----------------------------------------------------------------------------------------------------------
^^^
Note: Fixed by MDL-75945 - the 10 cases, putting the calls under PHP version conditions. This was also in previous reports.

FILE: /lib/php-enum/src/Enum.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 22 | WARNING | 'enum' is a soft reserved keyword as of PHP version 8.1 and should not be used to name a class, interface or trait
    |         | or as part of a namespace (class declaration)
 22 | ERROR   | Function name, class name, namespace name or constant name can not be reserved keyword 'implements' (since version
    |         | 5.0)
------------------------------------------------------------------------------------------------------------------------------------
^^^
Created MDL-77101. This was also in previous reports.

FILE: /lib/tests/moodlelib_test.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------
  470 | ERROR   | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP
      |         | 7. Found: '0X5'
  487 | ERROR   | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP
      |         | 7. Found: '0X5'
 2678 | WARNING | The value of the password hash algorithm constants has changed in PHP 7.4. Pass a PHP native constant to the
      |         | password_hash() function instead of using the value of the constant. Found: '2y'
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, we aren't trying to perform any hexadecimal operation there, just verify PARAM_LOCALISEDFLOAT behavior. This was also in previous reports.

FILE: /lib/aws-sdk/src/Token/Token.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 10 | WARNING | When the magic __serialize() and __unserialize() methods are available and the code base does not need to support
    |         | PHP < 7.4, the implementation of the Serializable interface can be removed.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It's only something that should be done in the upstream library. Functionality is intact.

FILE: /lib/aws-sdk/src/CloudFront/Signer.php
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------
 53 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
-----------------------------------------------------------------------------
^^^
Note: The openssl_pkey_free() is conditional, so all ok.

FILE: /lib/aws-sdk/src/Api/DocModel.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
 93 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${ref}
 94 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${ref}
-------------------------------------------------------------------------------------------------------
^^^
Note: It is deprecated until PHP 9. The library will need to fix that earlier. Also, not sure if we use that code.

FILE: /lib/aws-sdk/src/Credentials/Credentials.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 8 | WARNING | When the magic __serialize() and __unserialize() methods are available and the code base does not need to support
   |         | PHP < 7.4, the implementation of the Serializable interface can be removed.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It's only something that should be done in the upstream library. Functionality is intact.

FILE: /lib/setuplib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 2031 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$method" was used, and possibly
      |         | changed (by reference), on line 2029.
 2256 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$code" was used, and possibly
      |         | changed (by reference), on line 2255.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the $method and $code parameters are not modified before the debug_backtrace() call. This was also in previous reports.

FILE: /lib/mustache/src/Mustache/Tokenizer.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 106 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
--------------------------------------------------------------------------------------------------------------
^^^
Note: This is under conditional PHP version check, so all right. This was also in previous reports.

FILE: /lib/phpxmlrpc/Server.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 693 | WARNING | Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv
     |         | instead
------------------------------------------------------------------------------------------------------------------------------------
^^^
All, ok the call is protected with function_exists('mb_convert_encoding') that Moodle will use. This was also in previous reports.

FILE: /lib/phpxmlrpc/Encoder.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 311 | WARNING | Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv
     |         | instead
------------------------------------------------------------------------------------------------------------------------------------
^^^
All, ok the call is protected with function_exists('mb_convert_encoding') that Moodle will use. This was also in previous reports.

FILE: /lib/phpxmlrpc/Request.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 310 | WARNING | Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv
     |         | instead
------------------------------------------------------------------------------------------------------------------------------------
^^^
All, ok the call is protected with function_exists('mb_convert_encoding') that Moodle will use. This was also in previous reports.

FILE: /lib/phpxmlrpc/Helper/Charset.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 259 | WARNING | Function utf8_encode() is deprecated since PHP 8.2; Use mb_convert_encoding(), UConverter::transcode() or iconv
     |         | instead
------------------------------------------------------------------------------------------------------------------------------------
^^^
All, ok the call is protected with function_exists('mb_convert_encoding') that Moodle will use. This was also in previous reports.

FILE: /lib/webauthn/src/Binary/ByteBuffer.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 13 | WARNING | When the magic __serialize() and __unserialize() methods are available and the code base does not need to support
    |         | PHP < 7.4, the implementation of the Serializable interface can be removed.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It's only something that should be done in the upstream library. Functionality is intact.

FILE: /lib/moodlelib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 5734 | ERROR | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |       | passed to a parameter, but will instead provide the current value. The parameter "$subject" was changed on line
      |       | 5592.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: The $subject parameter is effectively changed sometimes (diverted mail). But it doesn't hurt in case we show that value on debug backtrace information. This was also in previous reports.

FILE: /lib/scssphp/Parser.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 4202 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
---------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, it's used conditionally. This was also in previous reports.

FILE: /lib/htmlpurifier/HTMLPurifier/Config.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
 806 | ERROR | Function get_magic_quotes_gpc() is deprecated since PHP 7.4 and removed since PHP 8.0
-----------------------------------------------------------------------------------------------------
^^^
Note: The code is conditional (function_exists()), hence, correct. This was also in previous reports.

FILE: /lib/openspout/src/Reader/CSV/Reader.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------
 67 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
 70 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
 99 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
-------------------------------------------------------------------------------------
^^^
Note: This are under php version check conditions, so all ok. This was also in previous reports.

FILE: /lib/ltiprovider/src/ToolProvider/DataConnector/DataConnector_mysql.php
--------------------------------------------------------------------------------------------------------------
FOUND 110 ERRORS AFFECTING 55 LINES
--------------------------------------------------------------------------------------------------------------
   65 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
   65 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
   67 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
   67 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  104 | ERROR | Function mysql_free_result() is deprecated since PHP 5.5 and removed since PHP 7.0
  104 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  172 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  172 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  175 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  175 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  198 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  198 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  206 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  206 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  215 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  215 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  223 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  223 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  232 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  232 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  240 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  240 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  249 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  249 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  256 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  256 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  264 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  264 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  271 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  271 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  278 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  278 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  301 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  301 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  303 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  303 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  337 | ERROR | Function mysql_free_result() is deprecated since PHP 5.5 and removed since PHP 7.0
  337 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  404 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  404 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  406 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  406 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  460 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  460 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  463 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  463 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  489 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  489 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  497 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  497 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  505 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  505 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  512 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  512 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  519 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  519 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  560 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  560 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  562 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  562 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  656 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  656 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  659 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  659 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  683 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  683 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  690 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  690 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  699 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  699 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  707 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  707 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  751 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  751 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  753 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  753 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  788 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  788 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  790 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  790 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  822 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  822 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  827 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  827 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  829 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  829 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  853 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  853 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  879 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  879 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  882 | ERROR | Function mysql_real_escape_string() is deprecated since PHP 5.5 and removed since PHP 7.0
  882 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  886 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  886 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  888 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  888 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  920 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  920 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  938 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  938 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  976 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  976 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  978 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  978 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1021 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
 1021 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1024 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
 1024 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1047 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
 1047 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
--------------------------------------------------------------------------------------------------------------
^^^
Note: This code is not used by core at all. This was also in previous reports.

FILE: /lib/lti1p3/src/DeepLinkResources/Resource.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 9 | WARNING | 'resource' is a soft reserved keyword as of PHP version 7.0 and should not be used to name a class, interface or
   |         | trait or as part of a namespace (class declaration)
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: This is an advise only, upstream library should fix that and avoid the reserved name, no matter it's in a namespace.

FILE: /lib/laravel/serializable-closure/src/Serializers/Signed.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 9 | WARNING | When the magic __serialize() and __unserialize() methods are available and the code base does not need to support
   |         | PHP < 7.4, the implementation of the Serializable interface can be removed.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It's only something that should be done in the upstream library. Functionality is intact.

FILE: /lib/laravel/serializable-closure/src/Serializers/Native.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 17 | WARNING | When the magic __serialize() and __unserialize() methods are available and the code base does not need to support
    |         | PHP < 7.4, the implementation of the Serializable interface can be removed.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: It's only something that should be done in the upstream library. Functionality is intact.

FILE: /lib/weblib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  435 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$params" was used, and possibly
      |         | changed (by reference), on line 434.
 3287 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as
      |         | passed to a parameter, but will instead provide the current value. The parameter "$level" was used, and possibly
      |         | changed (by reference), on line 3277.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the parameter $params is not modified before the call to func_get_args(). This was also in previous reports.
Note: False positive, the parameter $level is not modified before the call to debug_backtrace. This was also in previous reports.

FILE: /h5p/h5plib/v126/joubel/editor/h5peditor-ajax.class.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 108 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed
     |         | to a parameter, but will instead provide the current value. The parameter "$endpoint" was used, and possibly
     |         | changed (by reference), on line 101.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive. The $endpoint is shifted away (and not modified), so use is correct. This was also in previous reports.

FILE: /mod/chat/gui_header_js/chatmsg.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be
   |         | using short open tags but PHP does not allow them.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Empty file. All ok, so far. This was also in previous reports.

FILE: /mod/chat/empty.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be
   |         | using short open tags but PHP does not allow them.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Empty file. All ok, so far. This was also in previous reports.

FILE: /mod/lti/OAuth.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------
 276 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
 299 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: Already fixed by MDL-73523 . They are conditional. This was also in previous reports.