Using Moodle 4.0 beta

- 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.
 2291 | WARNING | Method name "S3Request::__sortMetaHeadersCmp" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2309 | WARNING | Method name "S3Request::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2325 | WARNING | Method name "S3Request::__dnsBucketName" is discouraged; PHP has reserved all method names with a double
      |         | underscore prefix for future use.
 2344 | WARNING | Method name "S3Request::__responseHeaderCallback" 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.

FILE: /cache/stores/mongodb/MongoDB/Exception/InvalidArgumentException.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
 59 | ERROR | The function get_debug_type() is not present in PHP version 7.4 or earlier
----------------------------------------------------------------------------------------------------------

FILE: /cache/stores/mongodb/MongoDB/Exception/ResumeTokenException.php
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
 33 | ERROR | The function get_debug_type() is not present in PHP version 7.4 or earlier
------------------------------------------------------------------------------------------------------
^^^
Note: This comes from MDL-70309, where a version of MongoDB was imported and it includes the get_debug_type()
that is only available for PHP 8 and up. So the failure is unrelated to the PHP 8 epic. The problem has been
commented in the Tracker issue and also reported upstream @ https://github.com/mongodb/mongo-php-library/issues/897

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).

FILE: /admin/renderer.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 989 | 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

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.

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

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.

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.

FILE: /mnet/lib.php
---------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------
  59 | ERROR   | Function xmlrpc_encode_request() is removed since PHP 8.0
 103 | ERROR   | Function xmlrpc_decode() is removed since PHP 8.0
 427 | WARNING | Function openssl_x509_free() is deprecated since PHP 8.0
 439 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
---------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.
Note: openssl already fixed by MDL-73523 . They are conditional.

FILE: /mnet/xmlrpc/server.php
------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------
 69 | ERROR | Function xmlrpc_decode_request() is removed since PHP 8.0
------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

FILE: /mnet/xmlrpc/serverlib.php
---------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
---------------------------------------------------------------------------------
 255 | ERROR | Function xmlrpc_decode_request() is removed since PHP 8.0
 289 | ERROR | Function xmlrpc_server_create() is removed since PHP 8.0
 306 | ERROR | Function xmlrpc_server_register_method() is removed since PHP 8.0
 307 | ERROR | Function xmlrpc_server_call_method() is removed since PHP 8.0
 310 | ERROR | Function xmlrpc_server_destroy() is removed since PHP 8.0
 468 | ERROR | Function xmlrpc_server_create() is removed since PHP 8.0
 469 | ERROR | Function xmlrpc_server_register_method() is removed since PHP 8.0
 470 | ERROR | Function xmlrpc_server_call_method() is removed since PHP 8.0
 471 | ERROR | Function xmlrpc_server_destroy() is removed since PHP 8.0
 507 | ERROR | Function xmlrpc_server_create() is removed since PHP 8.0
 508 | ERROR | Function xmlrpc_server_register_method() is removed since PHP 8.0
 509 | ERROR | Function xmlrpc_server_call_method() is removed since PHP 8.0
 510 | ERROR | Function xmlrpc_server_destroy() is removed since PHP 8.0
---------------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

FILE: /mnet/xmlrpc/client.php
-------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------
 123 | ERROR | Function xmlrpc_set_type() is removed since PHP 8.0
 145 | ERROR | Function xmlrpc_encode_request() is removed since PHP 8.0
 265 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

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.

FILE: /webservice/xmlrpc/tests/lib_test.php
---------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
---------------------------------------------------------------------------
  64 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
  77 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 105 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 115 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 132 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 135 | ERROR | Function xmlrpc_encode_request() is removed since PHP 8.0
 137 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 146 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 190 | ERROR | Function xmlrpc_decode() is removed since PHP 8.0
 191 | ERROR | Function xmlrpc_is_fault() is removed since PHP 8.0
---------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

FILE: /webservice/xmlrpc/locallib.php
-------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------
  73 | ERROR | Function xmlrpc_decode_request() is removed since PHP 8.0
 114 | ERROR | Function xmlrpc_encode_request() is removed since PHP 8.0
 201 | ERROR | Function xmlrpc_encode_request() is removed since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

FILE: /webservice/xmlrpc/lib.php
-------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------
  93 | ERROR | Function xmlrpc_is_fault() is removed since PHP 8.0
 117 | ERROR | Function xmlrpc_encode_request() is removed since PHP 8.0
 135 | ERROR | Function xmlrpc_decode_request() is removed since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: the extension is still available @ PECL. And we have MDL-70889 to decide about its future.

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.

FILE: /lib/tcpdf/include/tcpdf_static.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 25 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------
  143 | ERROR   | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
  159 | ERROR   | Function get_magic_quotes_runtime() is deprecated since PHP 7.4 and removed since PHP 8.0
  453 | ERROR   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or 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   | 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
  453 | ERROR   | The constant "MCRYPT_RAND" 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
  475 | ERROR   | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  475 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  475 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  475 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  476 | ERROR   | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  476 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  476 | ERROR   | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
  476 | ERROR   | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
  493 | ERROR   | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
  493 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
      |         | once available instead
  493 | ERROR   | The constant "MCRYPT_ARCFOUR" is deprecated since PHP 7.1 and removed since PHP 7.2
  493 | ERROR   | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.2
 1841 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
 1976 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: The set_magic_quotes_runtime() are conditional for old PHp versions.
Note: The mcrypt uses are conditional, only if openssl (that is mandatory) is not available. So all ok.

FILE: /lib/tcpdf/tcpdf.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 10970 | ERROR | Function mcrypt_get_cipher_name() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 10970 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
       |       | once available instead
 10970 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
 16403 | ERROR | Self-closing XHTML tags are ignored. Only non-self-closing tags should be used in the strip_tags() $allowable_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.
Note: the strip_tags() use includes some self-closing (img...) tags, so they will be ignored. Wrong but behavior is not altered.

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.

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
 856 | 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 842.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: The track_errors use doesn't hurt.
Note: dl() is conditional (function_exists()) covered, so all ok.
Note: $mode may be modified, but it doesn't hurt to get the modified (effective) value in the debug_backtrace()

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
 85 | WARNING | Function libxml_disable_entity_loader() is deprecated since PHP 8.0
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Ignorable, the 2 uses are conditional.

FILE: /lib/phpmailer/src/PHPMailer.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------
  859 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
 1414 | ERROR   | The constant "INTL_IDNA_VARIANT_2003" is deprecated since PHP 7.2 and removed since PHP 8.0
 1416 | ERROR   | The default value of the idn_to_ascii() $variant parameter has changed from INTL_IDNA_VARIANT_2003 to
      |         | INTL_IDNA_VARIANT_UTS46 in PHP 7.4. For optimal cross-version compatibility, the $variant parameter should be
      |         | explicitly set.
 4530 | WARNING | Function openssl_pkey_free() is deprecated since PHP 8.0
 4536 | 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.
Note: If INTL_IDNA_VARIANT_UTS46 is defined, it's used always. So all right.
Note: The openssl_pkey_free() and conditional, so all ok.

FILE: /lib/adodb/adodb-pear.inc.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
FILE: /lib/adodb/adodb-lib.inc.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-oci8po.inc.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------
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-mysqlt.inc.php
------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-oracle.inc.php
-----------------------------------------------------------------------------
FOUND 30 ERRORS AFFECTING 27 LINES
-----------------------------------------------------------------------------
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 41 ERRORS AFFECTING 40 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-mysql.inc.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 57 ERRORS AND 2 WARNINGS AFFECTING 33 LINES
------------------------------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-mysqlpo.inc.php
------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-pdo_firebird.inc.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-db2.inc.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/drivers/adodb-sqlite.inc.php
-----------------------------------------------------------------------------
FOUND 40 ERRORS AFFECTING 22 LINES
-----------------------------------------------------------------------------
FILE: /lib/adodb/adodb.inc.php
------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 1 WARNING AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------
FILE: /lib/adodb/adodb-xmlschema.inc.php
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 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: Lots of warnings, mainly 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. Maybe people using
other drivers (they can) may face some problem, but that will need to be fixed under demand.

FILE: /lib/portfoliolib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 815 | 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 809.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, $plugin is not used, because the args are shifted.

FILE: /lib/modinfolib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------
  172 | WARNING | Method name "course_modinfo::__empty" is discouraged; PHP has reserved all method names with a double underscore
      |         | prefix for future use.
 1327 | WARNING | Method name "cm_info::__empty" is discouraged; PHP has reserved all method names with a double underscore prefix
      |         | for future use.
 2820 | 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.

FILE: /lib/simplepie/library/SimplePie.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  671 | ERROR   | When die() is called within an object constructor, the object destructor will no longer be called since PHP 8.0
 3133 | 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 3119.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: No problem, the die() only happens for PHP < 5.6.

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()

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

FILE: /lib/google/src/Google/Verifier/Pem.php
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------
 55 | WARNING | Function openssl_x509_free() is deprecated since PHP 8.0
-----------------------------------------------------------------------------
^^^
Note: Already fixed by MDL-73523 . They are conditional.

FILE: /lib/dml/moodle_database.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 520 | 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 510.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the $error parameter is not modified before the call to debug_backtrace()

FILE: /lib/horde/framework/Horde/Crypt/Blowfish/Mcrypt.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------------------
 53 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 53 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 53 | ERROR | The constant "MCRYPT_BLOWFISH" is deprecated since PHP 7.1 and removed since PHP 7.2
 60 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 60 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 61 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 61 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 62 | ERROR | Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 62 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 71 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 71 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 72 | ERROR | Function mdecrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 73 | ERROR | Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
 73 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 83 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL
    |       | instead
 83 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
    |       | available instead
 83 | ERROR | The constant "MCRYPT_RAND" is deprecated since PHP 7.1 and removed since PHP 7.2
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Everything happens conditionally, if PHP < 7.1 and the extension is loaded, in the supported() method. So all ok. 

FILE: /lib/horde/framework/Horde/Mail/Transport/Mail.php
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 102 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
-------------------------------------------------------------------------------------------------
^^^
Note: No problem, it will return always false.

FILE: /lib/horde/framework/Horde/Support/Backtrace.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 37 | 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 "$backtrace" was used, and
    |         | possibly changed (by reference), on line 30.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the $backtrace parameter is not modified before the debug_backtrace() call.

FILE: /lib/horde/framework/Horde/String.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------------------------------
 148 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
 149 | ERROR | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 151 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
 487 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
 488 | ERROR | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 490 | ERROR | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 491 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
 497 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
 498 | ERROR | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 509 | ERROR | INI directive 'track_errors' is deprecated since PHP 7.2 and removed since PHP 8.0
 510 | ERROR | The variable '$php_errormsg' is deprecated since PHP 7.2 and removed since PHP 8.0; Use error_get_last() instead
--------------------------------------------------------------------------------------------------------------------------------
^^^
Note: This doesn't seem to be affecting us. Was reviewed @ MDL-73520. And there is https://github.com/horde/Util/pull/7 to fix it.

FILE: /lib/horde/framework/Horde/Idna.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 39 | ERROR | The default value of the idn_to_ascii() $variant parameter has changed from INTL_IDNA_VARIANT_2003 to
    |       | INTL_IDNA_VARIANT_UTS46 in PHP 7.4. For optimal cross-version compatibility, the $variant parameter should be
    |       | explicitly set.
 64 | ERROR | The default value of the idn_to_utf8() $variant parameter has changed from INTL_IDNA_VARIANT_2003 to
    |       | INTL_IDNA_VARIANT_UTS46 in PHP 7.4. For optimal cross-version compatibility, the $variant parameter should be
    |       | explicitly set.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: By default, since PHP 5.4... it used INTL_IDNA_VARIANT_UTS46, so all ok.

FILE: /lib/horde/framework/Horde/Util.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------
 117 | ERROR   | Function get_magic_quotes_gpc() is deprecated since PHP 7.4 and removed since PHP 8.0
 512 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
 538 | WARNING | Function dl() is deprecated since PHP 5.3
 538 | WARNING | Function dl() is deprecated since PHP 5.3
-------------------------------------------------------------------------------------------------------
^^^
Note: get_magic_quotes_gpc() is used conditionally, all ok.
Note: dl() is used conditionally (function_exists()), so all ok.

FILE: /lib/php-enum/src/Enum.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
 313 | ERROR | Attributes are not supported in PHP 7.4 or earlier. Found: #[\ReturnTypeWillChange]
---------------------------------------------------------------------------------------------------
^^^
Note: That attribute is new in PHP 8.1. Older versions will consider it a comment (7.x) or ignore it (8.0). https://php.watch/versions/8.1/ReturnTypeWillChange

FILE: /lib/tests/moodlelib_test.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 535 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7.
     |       | Found: '0X5'
 551 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7.
     |       | Found: '0X5'
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, we aren't trying to perform any hexadecimal operation there, just verify PARAM_LOCALISEDFLOAT behavior.

FILE: /lib/setuplib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 1962 | 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 1960.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the $method parameter is not modified before the debug_backtrace() call.

FILE: /lib/mustache/src/Mustache/Tokenizer.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 102 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
--------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical because it's returning the same value than before, but better get rid of it.

FILE: /lib/phpunit/bootstrap.php
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 43 | ERROR | INI directive 'opcache.load_comments' is removed since PHP 7.0
-----------------------------------------------------------------------------
^^^
Note: Not critical, everything works ok, but better get rid of it given it does nothing.

FILE: /lib/moodlelib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 6112 | 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
      |       | 5970.
------------------------------------------------------------------------------------------------------------------------------------
^^^
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.

FILE: /lib/scssphp/Parser.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 4158 | 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.

FILE: /lib/scssphp/Node/Number.php
---------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------
 152 | ERROR | Attributes are not supported in PHP 7.4 or earlier. Found: #[\ReturnTypeWillChange]
 178 | ERROR | Attributes are not supported in PHP 7.4 or earlier. Found: #[\ReturnTypeWillChange]
 205 | ERROR | Attributes are not supported in PHP 7.4 or earlier. Found: #[\ReturnTypeWillChange]
 214 | ERROR | Attributes are not supported in PHP 7.4 or earlier. Found: #[\ReturnTypeWillChange]
---------------------------------------------------------------------------------------------------
^^^
Note: That attribute is new in PHP 8.1. Older versions will consider it a comment (7.x) or ignore it (8.0). https://php.watch/versions/8.1/ReturnTypeWillChange

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.

FILE: /lib/htmlpurifier/HTMLPurifier/AttrDef/URI/Host.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 103 | ERROR | The default value of the idn_to_ascii() $variant parameter has changed from INTL_IDNA_VARIANT_2003 to
     |       | INTL_IDNA_VARIANT_UTS46 in PHP 7.4. For optimal cross-version compatibility, the $variant parameter should be
     |       | explicitly set.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, if defined (that it is), INTL_IDNA_VARIANT_UTS46 is used.

FILE: /lib/htmlpurifier/HTMLPurifier/HTMLModule.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 261 | 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 "$list" was used, and possibly changed
     |         | (by reference), on line 260.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive. The parameter $list is not modified before the func_get_args() call.

FILE: /lib/ltiprovider/src/ToolProvider/DataConnector/DataConnector_mysql.php
-------------------------------------------------------------------------------------------------------------
FOUND 110 ERRORS AFFECTING 55 LINES
-------------------------------------------------------------------------------------------------------------
   64 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
   64 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
   66 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
   66 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  103 | ERROR | Function mysql_free_result() is deprecated since PHP 5.5 and removed since PHP 7.0
  103 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  171 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  171 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  174 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  174 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  197 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  197 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  205 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  205 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  214 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  214 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  222 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  222 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  231 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  231 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  239 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  239 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  248 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  248 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  255 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  255 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  263 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  263 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  270 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  270 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  277 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  277 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  300 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  300 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  302 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  302 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  336 | ERROR | Function mysql_free_result() is deprecated since PHP 5.5 and removed since PHP 7.0
  336 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  403 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  403 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  405 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  405 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  459 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  459 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  462 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  462 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  488 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  488 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  496 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  496 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  504 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  504 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  511 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  511 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  518 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  518 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  559 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  559 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  561 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  561 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  655 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  655 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  658 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
  658 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  682 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  682 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  689 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  689 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  698 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  698 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  706 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  706 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  750 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  750 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  752 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  752 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  787 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  787 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  789 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  789 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  821 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  821 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  826 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  826 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  828 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  828 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  852 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  852 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  878 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  878 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  881 | ERROR | Function mysql_real_escape_string() is deprecated since PHP 5.5 and removed since PHP 7.0
  881 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  885 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  885 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  887 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  887 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  919 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  919 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  937 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  937 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  975 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
  975 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
  977 | ERROR | Function mysql_fetch_object() is deprecated since PHP 5.5 and removed since PHP 7.0
  977 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1020 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
 1020 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1023 | ERROR | Function mysql_insert_id() is deprecated since PHP 5.5 and removed since PHP 7.0
 1023 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
 1046 | ERROR | Function mysql_query() is deprecated since PHP 5.5 and removed since PHP 7.0
 1046 | 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.

FILE: /lib/editor/tinymce/plugins/spellchecker/classes/EnchantSpell.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------
 35 | WARNING | Function enchant_broker_free_dict() is deprecated since PHP 8.0; Use unset the object instead
 39 | WARNING | Function enchant_broker_free() is deprecated since PHP 8.0; Use unset the object instead
 60 | WARNING | Function enchant_broker_free_dict() is deprecated since PHP 8.0; Use unset the object instead
 65 | WARNING | Function enchant_broker_free() is deprecated since PHP 8.0; Use unset the object instead
--------------------------------------------------------------------------------------------------------------
^^^
Note: Nothing to change, it was verified by MDL-73496 (not used by our tinymce)

FILE: /lib/editor/tinymce/plugins/spellchecker/classes/GoogleSpell.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
 132 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
 133 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
------------------------------------------------------------------------------------------------------
^^^
Note: Nothing to change, it was verified by /MDL-52468 (not used by our tinymce)

FILE: /lib/editor/tinymce/plugins/spellchecker/rpc.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 32 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
 33 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
-----------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Its existence is checked with isset() so it's safe.

FILE: /lib/weblib.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
  428 | 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 427.
 3231 | 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 3221.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive, the parameter $params is not modified before the call to func_get_args()
Note: False positive, the parameter $level is not modified before the call to debug_backtrace

FILE: /h5p/h5plib/v124/joubel/editor/h5peditor-ajax.class.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 98 | 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 91.
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: False positive. The $endpoint is shifted away (and not modified), so use is correct.

FILE: /h5p/h5plib/v124/joubel/editor/ckeditor/samples/old/assets/posteddata.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 35 | 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.

FILE: /mod/imscp/locallib.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
 289 | WARNING | Function libxml_disable_entity_loader() is deprecated since PHP 8.0
-------------------------------------------------------------------------------------
^^^
Note: It's used conditionally. MDL-70896 fixed it.

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.

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.

FILE: /mod/wiki/classes/external.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 515 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
--------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical because it's returning the same value than before, but better get rid of it.

FILE: /mod/wiki/tests/externallib_test.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 647 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2 and removed since PHP 8.0
--------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical because it's returning the same value than before, but better get rid of it.

FILE: /mod/lti/OAuth.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------
 268 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
 291 | WARNING | Function openssl_free_key() is deprecated since PHP 8.0
-------------------------------------------------------------------------
^^^
Note: Already fixed by MDL-73523 . They are conditional.

FILE: /mod/lti/locallib.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------
 4585 | WARNING | Function libxml_disable_entity_loader() is deprecated since PHP 8.0
--------------------------------------------------------------------------------------
^^^
Note: It's used conditionally. MDL-70896 fixed it.

FILE: /mod/lesson/classes/local/numeric/helper.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 26 | WARNING | 'numeric' 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 (T_NAMESPACE)
------------------------------------------------------------------------------------------------------------------------------------
^^^
Note: Not critical but we should consider renaming that, just in case some day it becomes hard reserved.

Time: 6.19 secs; Memory: 40MB