PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #1134

bug in Worksheet

Details

Submitted2004-04-05 06:38 UTC
Fromboucher dot stephane at free dot fr
StatusBogus
PackageSpreadsheet_Excel_Writer
PHP Version4.3.4
OSlinux
Roadmaps(Not assigned)

Comments

[2004-04-05 06:38 UTC] boucher dot stephane at free dot fr

Description:
------------
THe number of str_total for SST in function writeStringBIFF8 in workSheet.php is not correct

The actually code is
Tha actually code is
/* check if string is already present */
if (!isset($this->_str_table[$str])) {
$this->_str_table[$str] = $this->_str_unique++;
}
$this->_str_total++;

I think, it better with the new line :
/* check if string is already present */
if (!isset($this->_str_table[$str])) {
$this->_str_table[$str] = $this->_str_unique++;
$this->_str_total++;
}

now the number of _str_total is good.

[2004-04-06 00:15 UTC] xnoguer at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

_str_unique counts unique words, _str_total counts total words.