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

Bug #59 Undefined value $retval notice
Submitted: 2003-10-03 07:49 UTC
From: bmansion at mamasam dot com Assigned: tuupola
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2003-10-03 07:49 UTC] bmansion at mamasam dot com
Description: ------------ In Worksheet.php, line 1132, $retval is undefined if no error is thrown in method writeRow(). Fix this by setting $retval a default value. Reproduce code: --------------- error_reporting(E_ALL); $workbook = new Spreadsheet_Excel_Writer(); $worksheet =& $workbook->addWorksheet('Users'); $users[] = array('john', 'doe'); foreach ($users as $row => $user) { $worksheet->writeRow($row, 0, $user); } $workbook->close();


 [2003-10-03 07:59 UTC] tuupola at php dot net
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at In case this was a documentation problem, the fix will show up soon at In case this was a website problem, the change will show up on the site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better.