diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php
index 88021a888179b05423c4deb75afe7a36183a05f9..d9b482a842f835cd9feed7e52da9894c06d7fae6 100644
--- a/install/lib/install.lib.php
+++ b/install/lib/install.lib.php
@@ -29,7 +29,9 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 error_reporting(E_ALL|E_STRICT);
 
-require_once 'compatibility.inc.php';
+if(version_compare(phpversion(), '7.0', '<')) {
+	require_once 'compatibility.inc.php';
+}
 
 $FILE = realpath('../install.php');
 
diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 7ff158fbdc47a094523a57f86ad95cd901d30547..96e8a1ddef0892b1ca35186ea08d263af75b21be 100755
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -28,7 +28,9 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-require_once 'compatibility.inc.php';
+if(version_compare(phpversion(), '7.0', '<')) {
+	require_once 'compatibility.inc.php';
+}
 
 //* Enable gzip compression for the interface
 ob_start('ob_gzhandler');
diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php
index a2e2dcf19b886cb4098c1327d1dd69f8423f24c5..ffd20e9fb6129df681a0c5ae158b2d3929557f6a 100644
--- a/server/lib/app.inc.php
+++ b/server/lib/app.inc.php
@@ -27,7 +27,9 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-require_once 'compatibility.inc.php';
+if(version_compare(phpversion(), '7.0', '<')) {
+	require_once 'compatibility.inc.php';
+}
 
 // Set timezone
 if(isset($conf['timezone']) && $conf['timezone'] != '') {	// note: !empty($conf['timezone']) should give the same result and is more idiomatic for current versions of PHP (gwyneth 20220315)