From 3e49de8be6ef18788c62184178b0a7eae48849ff Mon Sep 17 00:00:00 2001 From: Nicola Asuni Date: Fri, 15 Mar 2013 22:46:20 +0000 Subject: [PATCH] 5.9.208 (2013-03-15) - objclone fuction was patched to support old imagick extensions. - tcpdf_parser was improved to support Cross-Reference Streams and large streams. --- tcpdf.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index ebccdd8..67582dc 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -27048,9 +27048,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: * @since 4.5.029 (2009-03-19) */ public function objclone($object) { - if (($object instanceof Imagick) AND (version_compare('3.1.0', phpversion('imagick')) === 1)) { - // imagick extension is older than 3.1.0 version - return $object->clone(); + if (($object instanceof Imagick) AND (version_compare(phpversion('imagick'), '3.0.1') !== 1)) { + // on the versions after 3.0.1 the clone() method was deprecated in favour of clone keyword + return @$object->clone(); } return @clone($object); }