aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-21 12:29:12 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-21 12:29:12 +0200
commita72ad940dff289f101be5bde60f85c18057fdb7a (patch)
tree8b07e26a943bae0ef52adf806a5b710c39d53fcb /lib/lib_rss.php
parent3108b2729f79ccaf5f8ba951a52ee35d28e2adb2 (diff)
Increase minimal support to PHP 5.3.8+
https://github.com/FreshRSS/FreshRSS/issues/1604
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 22136854e..dcce8a02c 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -1,4 +1,8 @@
<?php
+if (version_compare(PHP_VERSION, '5.3.8', '<')) {
+ die('FreshRSS error: FreshRSS requires PHP 5.3.8+!');
+}
+
if (!function_exists('json_decode')) {
require_once('JSON.php');
function json_decode($var, $assoc = false) {
@@ -393,7 +397,7 @@ function check_install_php() {
$pdo_mysql = extension_loaded('pdo_mysql');
$pdo_sqlite = extension_loaded('pdo_sqlite');
return array(
- 'php' => version_compare(PHP_VERSION, '5.3.3') >= 0,
+ 'php' => version_compare(PHP_VERSION, '5.3.8') >= 0,
'minz' => file_exists(LIB_PATH . '/Minz'),
'curl' => extension_loaded('curl'),
'pdo' => $pdo_mysql || $pdo_sqlite,