|
@@ -1,9 +1,15 @@
|
|
|
<?php // @codingStandardsIgnoreFile
|
|
|
|
|
|
-// check PHP version
|
|
|
+// check PHP platform requirements
|
|
|
if (PHP_VERSION_ID < 50306) {
|
|
|
die('Pico requires PHP 5.3.6 or above to run');
|
|
|
}
|
|
|
+if (!extension_loaded('dom')) {
|
|
|
+ die('Pico requires the PHP extension "dom" to run');
|
|
|
+}
|
|
|
+if (!extension_loaded('mbstring')) {
|
|
|
+ die('Pico requires the PHP extension "mbstring" to run');
|
|
|
+}
|
|
|
|
|
|
// load dependencies
|
|
|
require_once(__DIR__ . '/vendor/autoload.php');
|