mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-26 17:40:42 +00:00
Performance improvements for the Excel5 Reader and Writer
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64968 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -169,10 +169,8 @@ class PHPExcel_Shared_OLE_PPS
|
||||
*/
|
||||
public function _getPpsWk()
|
||||
{
|
||||
$ret = $this->Name;
|
||||
for ($i = 0; $i < (64 - strlen($this->Name)); ++$i) {
|
||||
$ret .= "\x00";
|
||||
}
|
||||
$ret = str_pad($this->Name,64,"\x00");
|
||||
|
||||
$ret .= pack("v", strlen($this->Name) + 2) // 66
|
||||
. pack("c", $this->Type) // 67
|
||||
. pack("c", 0x00) //UK // 68
|
||||
@@ -215,4 +213,4 @@ class PHPExcel_Shared_OLE_PPS
|
||||
}
|
||||
return $this->No;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user