diff --git a/app/helpers.php b/app/helpers.php index e715f2ab..60f37bcd 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -305,11 +305,6 @@ if (! function_exists('runtime_check')) { function runtime_check(array $requirements) { - // check php version - if (version_compare(PHP_VERSION, $requirements['php'], '<')) { - exit("[Error] Blessing Skin Server needs PHP version >= {$requirements['php']}, you are now using ".PHP_VERSION); - } - foreach ($requirements['extensions'] as $extension) { if (!extension_loaded($extension)) { exit("[Error] You have not installed the $extension extension"); diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index c54c842d..38301379 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -2,8 +2,6 @@ define('LARAVEL_START', microtime(true)); -ini_set('display_errors', 'on'); - /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader diff --git a/gulpfile.js b/gulpfile.js index c60414ea..9f1f1fce 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,7 +2,7 @@ * @Author: prpr * @Date: 2016-07-21 13:38:26 * @Last Modified by: printempw -* @Last Modified time: 2016-12-10 20:22:13 +* @Last Modified time: 2016-12-17 20:36:36 */ var gulp = require('gulp'), @@ -100,6 +100,7 @@ gulp.task('zip', function() { del([ 'storage/logs/*', 'storage/debugbar/*', + 'storage/update_cache/*', 'storage/yaml-translation/*', 'storage/framework/cache/*', 'storage/framework/sessions/*', diff --git a/index.php b/index.php index 1de66879..5dcb0767 100755 --- a/index.php +++ b/index.php @@ -7,13 +7,19 @@ * @author printempw */ +@ini_set('display_errors', 'on'); + +// check PHP version +if (version_compare(PHP_VERSION, '5.5.9', '<')) { + exit('[Error] Blessing Skin Server needs PHP version >= 5.5.9, you are now using '.PHP_VERSION); +} + require __DIR__.'/bootstrap/autoload.php'; // check the runtime environment -runtime_check([ - 'php' => '5.5.9', - 'extensions' => ['pdo_mysql', 'openssl', 'gd'] -]); +runtime_check(array( + 'extensions' => array('pdo_mysql', 'openssl', 'gd') +)); // handle the request require __DIR__.'/bootstrap/handler.php';