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

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


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 40 - 36 = ?

 
 [2003-10-03 12: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();

Comments

 [2003-10-03 12: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 http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better.