Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions
phpminimumversionlib.php File Reference

A set of PHP-compatible convenience functions to check Moodle minimum PHP version in a unified place. More...

Functions

 moodle_minimum_php_version_is_met ($haltexecution=false)
 Tests the current PHP version against Moodle's minimum requirement. More...
 
 moodle_require_minimum_php_version ()
 Require our minimum php version or halt execution if requirement not met. More...
 

Detailed Description

A set of PHP-compatible convenience functions to check Moodle minimum PHP version in a unified place.

PLEASE NOTE: This file is made to be both php-version compatible and without requirement on any moodle functions or installation so it can be used in installer or incompatible PHP versions.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later