Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Bug #19773 Fatal Error
Submitted: 2013-01-04 22:11 UTC
From: sdousley Assigned: sanmai
Status: Feedback Package: Spreadsheet_Excel_Writer (version 0.9.3)
PHP Version: 5.4.8 OS: CentOS 5
Roadmaps: (Not assigned)    
Subscription  


 [2013-01-04 22:11 UTC] sdousley (Steve Ousley)
Description: ------------ Fatal error: Call-time pass-by-reference has been removed in /usr/share/pear/Spreadsheet/Excel/Writer/Worksheet.php on line 2490 Test script: --------------- require_once('Spreadsheet/Excel/Writer.php'); Expected result: ---------------- This should work Actual result: -------------- This gets a fatal error for a call-time pass-by-reference. According to the php documents, the reference should be in the function declaration arguments, rather than in the function call arguments.

Comments

 [2013-01-25 19:40 UTC] bjoerns (Björn Schrader)
 [2013-01-26 00:14 UTC] johnnyjboss (Johnny Walker)
Very timely patch. Thank you.
 [2013-02-03 03:12 UTC] roger (Arthur Blomnik)
After patch I receive Strict standards: Declaration of Spreadsheet_Excel_Writer_Worksheet::_append() should be compatible with Spreadsheet_Excel_Writer_BIFFwriter::_append($data)
 [2013-04-19 16:31 UTC] pierre42 (Pierre Beaumadier)
The patch works perfectly for me A new release with it would be nice
 [2013-06-17 18:09 UTC] drzraf (Raphaël Droz)
isn't the patch attached to bug #19359 more adequate ?
 [2014-02-10 12:06 UTC] roncemer (Ron Cemer)
Instead of a patch, why not release a new version of this package to the PEAR repo? I can tell you that there are probably a TON of people using this package, and if it suddenly break (we're talking ALL kinds of websites) upon PHP upgrade (which happens automatically in many environments), it will be a disaster. An unnecessary disaster, easily prevented by the Spreadsheet_Excel_Writer pushing out a new release with the patch applied. It's just the right thing to do. Let's get it done and move on.
 [2015-02-24 20:40 UTC] harry12singh (Harry Singh)
 [2015-03-31 05:13 UTC] nugrul (Laurent Courtin)
Since there is no still no patch, this is my lightweight composer patch, that works on Unix-like only, due to the "sed" dependency "scripts": { "post-install-cmd" : [ "sed -i '2490s/&$string/$header.$data/' vendor/pear-pear.php.net/Spreadsheet_Excel_Writer/Spreadsheet/Excel/Writer/Worksheet.php" ] }
 [2016-06-03 09:10 UTC] borsti92 (Jerry Scheer)
How to solve this problem? The patch still not ready. How to apply the patch from Laurent Courtin
 [2016-06-21 02:50 UTC] sanmai (Alexey Kopytko)
-Status: Open +Status: Closed -Assigned To: +Assigned To: sanmai
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Fixed in the master.
 [2017-04-18 16:20 UTC] illustrationism (Illu Strationism)
This is still broken in PHP 5.6 and due to support for CentOS5 being discontinued, many servers are being upgraded, with the minimum PHP version being 5.6. We are being creative to fix the problem on all our environments, but this will continue to be an increasing problem for lots of people as older versions of PHP get sunsetted.
 [2017-04-19 07:37 UTC] nugrul (Laurent Courtin)
The issue has been solved on Github, and a new release is available over there (0.9.4). PEAR latest release is 0.9.3, how can we have it updated?
 [2017-05-03 09:49 UTC] sanmai (Alexey Kopytko)
I'll see what I can do but right now you can install the package without composer like so: cd /tmp git clone https://github.com/pear/Spreadsheet_Excel_Writer sudo pear upgrade -f Spreadsheet_Excel_Writer/package.xml
 [2017-05-25 02:23 UTC] sanmai (Alexey Kopytko)
-Status: Closed +Status: Feedback
I've pushed a new release. Please see if you could install it. Other than that you may have to install latest development version of pear/OLE.