summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/PEAR-OLE/files/pear-bug-19284.patch')
-rw-r--r--dev-php/PEAR-OLE/files/pear-bug-19284.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-php/PEAR-OLE/files/pear-bug-19284.patch b/dev-php/PEAR-OLE/files/pear-bug-19284.patch
new file mode 100644
index 00000000000..c94142c1ae4
--- /dev/null
+++ b/dev-php/PEAR-OLE/files/pear-bug-19284.patch
@@ -0,0 +1,24 @@
+From e63587ddb88057cc2e403c48d2f41728ba1044ef Mon Sep 17 00:00:00 2001
+From: flack <flack@contentcontrol-berlin.de>
+Date: Tue, 27 Nov 2012 10:26:09 +0100
+Subject: [PATCH] Fix problem where Excel files couldn't be opened in Ofccie
+ 2010
+
+I haven't traced the problem, the fix is from one of the comments of http://pear.php.net/bugs/bug.php?id=19284, but for me, this reproducably fixes the issue the Excel 2010 refuses to open the files because they are corrupt
+---
+ OLE/PPS/Root.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/OLE/PPS/Root.php b/OLE/PPS/Root.php
+index 2f19ba0..387c3b3 100755
+--- a/OLE/PPS/Root.php
++++ b/OLE/PPS/Root.php
+@@ -620,7 +620,7 @@ function _create_header($num_sb_blocks, $num_bb_blocks, $num_pps_blocks)
+ else
+ fwrite($FILE, pack("V", -2));
+
+- fwrite($FILE, pack("V", 1));
++ fwrite($FILE, pack("V", $num_sb_blocks));
+
+ // Extra BDList Start, Count
+ if($bbd_info["blockchain_list_entries"] < $bbd_info["header_blockchain_list_entries"])