Bump TCPDF from 6.10.1 to 6.11.2

This commit is contained in:
johnnyq
2026-03-07 17:01:53 -05:00
parent 8dbbef37bb
commit ffb97006ec
27 changed files with 153 additions and 124 deletions

View File

@@ -5,9 +5,9 @@
// Begin : 2002-08-03
// Last Update : 2024-12-23
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
// Copyright (C) 2002-2025 Nicola Asuni - Tecnick.com LTD
// Copyright (C) 2002-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version.
* @private static
*/
private static $tcpdf_version = '6.10.1';
private static $tcpdf_version = '6.11.2';
/**
* String alias for total number of pages.
@@ -492,7 +492,7 @@ class TCPDF_STATIC {
* @param string $last_enc_key_c Reference to last RC4 computed key.
* @return string encrypted text
* @since 2.0.000 (2008-01-02)
* @author Klemen Vodopivec, Nicola Asuni
* @author Klemen Vodopivec,2026 Nicola Asuni
* @public static
*/
public static function _RC4($key, $text, &$last_enc_key, &$last_enc_key_c) {
@@ -1863,7 +1863,9 @@ class TCPDF_STATIC {
curl_setopt_array($crs, $curlopts);
curl_exec($crs);
$code = curl_getinfo($crs, CURLINFO_HTTP_CODE);
curl_close($crs);
if (PHP_VERSION_ID < 80000) {
curl_close($crs);
}
return ($code == 200);
}
@@ -1995,7 +1997,9 @@ class TCPDF_STATIC {
$curlopts[CURLOPT_URL] = $url;
curl_setopt_array($crs, $curlopts);
$ret = curl_exec($crs);
curl_close($crs);
if (PHP_VERSION_ID < 80000) {
curl_close($crs);
}
if ($ret !== false) {
return $ret;
}