diff --git a/class/class-mainwp-child-back-wp-up.php b/class/class-mainwp-child-back-wp-up.php
index b4016f3..e378621 100644
--- a/class/class-mainwp-child-back-wp-up.php
+++ b/class/class-mainwp-child-back-wp-up.php
@@ -339,7 +339,7 @@ class MainWP_Child_Back_WP_Up {
echo '
' . __( 'Operating System', 'backwpup' ) . ' | ' . esc_html( PHP_OS ) . ' |
';
echo '' . __( 'PHP SAPI', 'backwpup' ) . ' | ' . esc_html( PHP_SAPI ) . ' |
';
echo '' . __( 'Current PHP user', 'backwpup' ) . ' | ' . esc_html( get_current_user() ) . ' |
';
- $text = (bool) ini_get( 'safe_mode' ) ? __( 'On', 'backwpup' ) : __( 'Off', 'backwpup' );
+ $text = version_compare(phpversion(), '5.3.0') < 0 && (bool) ini_get( 'safe_mode' ) ? __( 'On', 'backwpup' ) : __( 'Off', 'backwpup' );
echo '' . __( 'Safe Mode', 'backwpup' ) . ' | ' . $text . ' |
';
echo '' . __( 'Maximum execution time', 'backwpup' ) . ' | ' . ini_get( 'max_execution_time' ) . ' ' . __( 'seconds', 'backwpup' ) . ' |
';
if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) {
diff --git a/class/class-mainwp-child-server-information.php b/class/class-mainwp-child-server-information.php
index 6c53106..49798c1 100644
--- a/class/class-mainwp-child-server-information.php
+++ b/class/class-mainwp-child-server-information.php
@@ -1171,7 +1171,7 @@ class MainWP_Child_Server_Information {
}
protected static function getPHPSafeMode() {
- if ( ini_get( 'safe_mode' ) ) {
+ if ( version_compare(phpversion(), '5.3.0') < 0 && ini_get( 'safe_mode' ) ) {
$safe_mode = __( 'ON' );
} else {
$safe_mode = __( 'OFF' );
diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php
index 2f8afeb..e5aca1a 100644
--- a/class/class-mainwp-child.php
+++ b/class/class-mainwp-child.php
@@ -1002,8 +1002,8 @@ class MainWP_Child {
$uploadDir = $uploadDir[0];
$excludes[] = str_replace( ABSPATH, '', $uploadDir );
$excludes[] = str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '/object-cache.php';
- if ( ! ini_get( 'safe_mode' ) ) {
- set_time_limit( 6000 );
+ if ( version_compare(phpversion(), '5.3.0') >= 0 || ! ini_get( 'safe_mode' ) ) {
+ @set_time_limit( 6000 );
}
$newExcludes = array();