Page 1 of 1

Xampp 1.8.1-VC9 pear not working on Windows 7 (64-bit)

PostPosted: 06. June 2013 13:58
by b_woodward2000
Hi just started using XAMPP on Windows for creating Excel spreadsheets from JSON data.
Using: Xampp 1.8.1-VC9
My PC is a Windows 7 (64-bit), running Office 2013
Anyway, the XAMPP core files wouldn't work correctly until I changed the following two files. I hope theses changes can be added to the next release?

Message stated that memory was not referenced correctly...
root\xampp\php\pear\Spreadsheet\Excel\Writer\Worksheet.php - line 2490.
// this code:
// $this->_append(&$string, true);
// becomes:
$this->_append($string, true);

and
When opening Excel document on my OS / office version it stated that the file was corrupt.
C:\xampp\php\pear\OLE\PPS\Root.php - line 624

// this code:
// fwrite($FILE, pack("V", 1));
// becomes:
fwrite($FILE, pack("V", $num_sb_blocks));

Hope these mods fixes other peoples bugs..
Thanks, and apoligies if format is poor, this is my first post.

Re: Xampp 1.8.1-VC9 pear not working on Windows 7 (64-bit)

PostPosted: 06. June 2013 14:22
by Altrea
Hi b_woodward2000,

The XAMPP developers and Administrators don't support PEAR Packages like the Excel Spreadsheets Writer class.
You can try to update the classes with help of the known PEAR commands (if that is a versions issue), configure it by yourself (if it is a user configuration issue) or use the bug reporting channels of this class (if it is a programm bug issue).

best wishes,
Altrea