mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
f60f6dfade
For a better PHP8 compatibility this commit replaces the deprecated $php_errormsg with error_get_last(). The PHP 8.0 migration guide (https://www.php.net/manual/de/migration80.incompatible.php) says: The track_errors ini directive has been removed. This means that php_errormsg is no longer available. The error_get_last() function may be used instead. Also the documentation on $php_errormsg (https://www.php.net/manual/en/reserved.variables.phperrormsg.php) says: This feature has been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged. Use error_get_last() instead. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>