From 9d701f6478dad32c00a41ff75ed09288ef02edf2 Mon Sep 17 00:00:00 2001 From: shitalmahajan Date: Tue, 7 May 2019 19:33:18 +0530 Subject: [PATCH] Remove deprecated function and used new function insted that --- reflect2.php | 2 +- reflect3.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reflect2.php b/reflect2.php index 6d7a3cd..2af0f7c 100644 --- a/reflect2.php +++ b/reflect2.php @@ -37,7 +37,7 @@ function stringToHTML($string) } // GD check - if (extension_loaded('gd') == false && !dl('gd.so')) + if (extension_loaded('gd') == false) { echo 'You are missing the GD extension for PHP, sorry but I cannot continue.'; exit(); diff --git a/reflect3.php b/reflect3.php index 017f593..8f10a1a 100644 --- a/reflect3.php +++ b/reflect3.php @@ -28,7 +28,7 @@ } // GD check - if (extension_loaded('gd') == false && !dl('gd.so')) + if (extension_loaded('gd') == false) { echo 'You are missing the GD extension for PHP, sorry but I cannot continue.'; exit(); @@ -43,7 +43,7 @@ exit(); } - if (ereg_replace('[[:alpha:][:space:]()]+', '', $gd_info['GD Version']) < '2.0.1') + if (preg_replace('[[:alpha:][:space:]()]+', '', $gd_info['GD Version']) < '2.0.1') { echo 'GD library is too old. Version 2.0.1 or later is required, and 2.0.28 is strongly recommended.'; exit();