diff --git a/Classes/fpdf/fpdf.php b/Classes/fpdf/fpdf.php index e7fbb45..ca99350 100755 --- a/Classes/fpdf/fpdf.php +++ b/Classes/fpdf/fpdf.php @@ -1040,8 +1040,11 @@ protected function _dochecks() if(ini_get('mbstring.func_overload') & 2) $this->Error('mbstring overloading must be disabled'); // Ensure runtime magic quotes are disabled - if(get_magic_quotes_runtime()) - @set_magic_quotes_runtime(0); + if (version_compare(PHP_VERSION, '5.4.0', '<')) { + if(get_magic_quotes_runtime()) { + @set_magic_quotes_runtime(0); + } + } } protected function _checkoutput() diff --git a/Classes/fpdf/makefont/makefont.php b/Classes/fpdf/makefont/makefont.php index 4bbd6d7..1c07f1c 100644 --- a/Classes/fpdf/makefont/makefont.php +++ b/Classes/fpdf/makefont/makefont.php @@ -384,8 +384,11 @@ function MakeDefinitionFile($file, $type, $enc, $embed, $subset, $map, $info) function MakeFont($fontfile, $enc='cp1252', $embed=true, $subset=true) { // Generate a font definition file - if(get_magic_quotes_runtime()) - @set_magic_quotes_runtime(false); + if (version_compare(PHP_VERSION, '5.4.0', '<')) { + if(get_magic_quotes_runtime()) { + @set_magic_quotes_runtime(0); + } + } ini_set('auto_detect_line_endings', '1'); if(!file_exists($fontfile))