diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT
index ff09723..18c73ae 100755
--- a/CHANGELOG.TXT
+++ b/CHANGELOG.TXT
@@ -1,3 +1,6 @@
+4.6.003 (2009-04-21)
+ - The caching mechanism of the UTF8StringToArray() method was fixed.
+
4.6.002 (2009-04-20)
- Documentation of rollbackTransaction() method was fixed.
- The setImageScale() and getImageScale() methods now set and get the adjusting parameter used by pixelsToUnits() method.
diff --git a/README.TXT b/README.TXT
index aff10e3..8768a2d 100755
--- a/README.TXT
+++ b/README.TXT
@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
-Version: 4.6.002
-Release date: 2009-04-20
+Version: 4.6.003
+Release date: 2009-04-21
Author: Nicola Asuni
Copyright (c) 2001-2009:
diff --git a/doc/classtrees_com-tecnick-tcpdf.html b/doc/classtrees_com-tecnick-tcpdf.html
index b189dfd..7a40701 100644
--- a/doc/classtrees_com-tecnick-tcpdf.html
+++ b/doc/classtrees_com-tecnick-tcpdf.html
@@ -45,7 +45,7 @@
diff --git a/doc/com-tecnick-tcpdf/TCPDF.html b/doc/com-tecnick-tcpdf/TCPDF.html
index 3da6136..013fe86 100644
--- a/doc/com-tecnick-tcpdf/TCPDF.html
+++ b/doc/com-tecnick-tcpdf/TCPDF.html
@@ -74,7 +74,7 @@ Source Location: /tcpdf.php
Version:
@@ -581,7 +581,7 @@ This is a PHP class for generating PDF documents without requiring external exte
author: | Nicola Asuni - info@tecnick.com |
- version: | 4.6.002 |
+ version: | 4.6.003 |
link: | http://www.tcpdf.org |
@@ -6900,7 +6900,7 @@ $afinish:)
- method empty_string [line 13561]
+ method empty_string [line 13562]
@@ -10305,7 +10305,7 @@ $maxh = 0])
- method objclone [line 13550]
+ method objclone [line 13551]
@@ -18903,7 +18903,7 @@ $file)
|
|
diff --git a/doc/com-tecnick-tcpdf/TCPDFBarcode.html b/doc/com-tecnick-tcpdf/TCPDFBarcode.html
index aff7598..c7a9718 100644
--- a/doc/com-tecnick-tcpdf/TCPDFBarcode.html
+++ b/doc/com-tecnick-tcpdf/TCPDFBarcode.html
@@ -1368,7 +1368,7 @@ $type)
|
diff --git a/doc/com-tecnick-tcpdf/_barcodes.php.html b/doc/com-tecnick-tcpdf/_barcodes.php.html
index b6d154b..ae2440d 100644
--- a/doc/com-tecnick-tcpdf/_barcodes.php.html
+++ b/doc/com-tecnick-tcpdf/_barcodes.php.html
@@ -96,7 +96,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit
|
diff --git a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html
index 1da433d..f8f9928 100644
--- a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html
+++ b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html
@@ -507,7 +507,7 @@ Configuration file for TCPDF.
diff --git a/doc/com-tecnick-tcpdf/_htmlcolors.php.html b/doc/com-tecnick-tcpdf/_htmlcolors.php.html
index 10a37b0..1271bf6 100644
--- a/doc/com-tecnick-tcpdf/_htmlcolors.php.html
+++ b/doc/com-tecnick-tcpdf/_htmlcolors.php.html
@@ -88,7 +88,7 @@ Array of WEB safe colors.
diff --git a/doc/com-tecnick-tcpdf/_tcpdf.php.html b/doc/com-tecnick-tcpdf/_tcpdf.php.html
index 70f3b29..c8ed16f 100644
--- a/doc/com-tecnick-tcpdf/_tcpdf.php.html
+++ b/doc/com-tecnick-tcpdf/_tcpdf.php.html
@@ -73,7 +73,7 @@ This is a PHP class for generating PDF documents without requiring external exte
author: | Nicola Asuni |
- version: | 4.6.002 |
+ version: | 4.6.003 |
copyright: | 2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com |
@@ -104,7 +104,7 @@ unicode data
diff --git a/doc/com-tecnick-tcpdf/_unicode_data.php.html b/doc/com-tecnick-tcpdf/_unicode_data.php.html
index e216ce5..c1d6128 100644
--- a/doc/com-tecnick-tcpdf/_unicode_data.php.html
+++ b/doc/com-tecnick-tcpdf/_unicode_data.php.html
@@ -237,7 +237,7 @@ Unicode Include file for TCPDF.
diff --git a/doc/elementindex.html b/doc/elementindex.html
index e90588c..9cc0516 100644
--- a/doc/elementindex.html
+++ b/doc/elementindex.html
@@ -1350,7 +1350,7 @@
top
diff --git a/doc/elementindex_com-tecnick-tcpdf.html b/doc/elementindex_com-tecnick-tcpdf.html
index 801fb15..8cf8cb5 100644
--- a/doc/elementindex_com-tecnick-tcpdf.html
+++ b/doc/elementindex_com-tecnick-tcpdf.html
@@ -1373,7 +1373,7 @@
top
diff --git a/doc/errors.html b/doc/errors.html
index f876f10..8898bb5 100644
--- a/doc/errors.html
+++ b/doc/errors.html
@@ -35,7 +35,7 @@
Post-parsing
diff --git a/doc/index.html b/doc/index.html
index 0b16b65..a4160b8 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -58,7 +58,7 @@
This documentation was generated by phpDocumentor v1.4.1
diff --git a/doc/li_com-tecnick-tcpdf.html b/doc/li_com-tecnick-tcpdf.html
index 0b16b65..a4160b8 100644
--- a/doc/li_com-tecnick-tcpdf.html
+++ b/doc/li_com-tecnick-tcpdf.html
@@ -58,7 +58,7 @@
This documentation was generated by phpDocumentor v1.4.1
diff --git a/tcpdf.php b/tcpdf.php
index 98bd6a2..bd983cb 100755
--- a/tcpdf.php
+++ b/tcpdf.php
@@ -2,9 +2,9 @@
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
-// Last Update : 2009-04-20
+// Last Update : 2009-04-21
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
-// Version : 4.6.002
+// Version : 4.6.003
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l.
@@ -122,7 +122,7 @@
* @copyright 2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
- * @version 4.6.002
+ * @version 4.6.003
*/
/**
@@ -146,14 +146,14 @@ if (!class_exists('TCPDF', false)) {
/**
* define default PDF document producer
*/
- define('PDF_PRODUCER', 'TCPDF 4.6.002 (http://www.tcpdf.org)');
+ define('PDF_PRODUCER', 'TCPDF 4.6.003 (http://www.tcpdf.org)');
/**
* This is a PHP class for generating PDF documents without requiring external extensions.
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @name TCPDF
* @package com.tecnick.tcpdf
- * @version 4.6.002
+ * @version 4.6.003
* @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
@@ -6495,9 +6495,9 @@ if (!class_exists('TCPDF', false)) {
* @since 1.53.0.TC005 (2005-01-05)
*/
protected function UTF8StringToArray($str) {
- if (isset($this->cache_UTF8StringToArray[$str])) {
+ if (isset($this->cache_UTF8StringToArray['_'.$str])) {
// return cached value
- return($this->cache_UTF8StringToArray[$str]);
+ return($this->cache_UTF8StringToArray['_'.$str]);
}
// check cache size
if ($this->cache_size_UTF8StringToArray >= $this->cache_maxsize_UTF8StringToArray) {
@@ -6513,7 +6513,7 @@ if (!class_exists('TCPDF', false)) {
$strarr[] = ord($str{$i});
}
// insert new value on cache
- $this->cache_UTF8StringToArray[$str] = $strarr;
+ $this->cache_UTF8StringToArray['_'.$str] = $strarr;
return $strarr;
}
$unicode = array(); // array containing unicode values
@@ -6571,7 +6571,7 @@ if (!class_exists('TCPDF', false)) {
}
}
// insert new value on cache
- $this->cache_UTF8StringToArray[$str] = $unicode;
+ $this->cache_UTF8StringToArray['_'.$str] = $unicode;
return $unicode;
}
@@ -12996,10 +12996,10 @@ if (!class_exists('TCPDF', false)) {
fclose($f);
}
// update file lenght (needed for transactions)
- if (!isset($this->cache_file_lenght[$filename])) {
- $this->cache_file_lenght[$filename] = strlen($data);
+ if (!isset($this->cache_file_lenght['_'.$filename])) {
+ $this->cache_file_lenght['_'.$filename] = strlen($data);
} else {
- $this->cache_file_lenght[$filename] += strlen($data);
+ $this->cache_file_lenght['_'.$filename] += strlen($data);
}
}
@@ -13530,6 +13530,7 @@ if (!class_exists('TCPDF', false)) {
if (isset($this->objcopy->diskcache) AND $this->objcopy->diskcache) {
// truncate files to previous values
foreach ($this->objcopy->cache_file_lenght as $file => $lenght) {
+ $file = substr($file, 1);
$handle = fopen($file, 'r+');
ftruncate($handle, $lenght);
}