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

Bug #12720 Notice thrown when using setColumn (undefined colFirst and colLast)
Submitted: 2007-12-18 17:43 UTC
From: rlee0001 Assigned: cschmitz
Status: Closed Package: Spreadsheet_Excel_Writer (version 0.9.1)
PHP Version: 5.2.3 OS: Ubuntu 7.10
Roadmaps: (Not assigned)    
Subscription  


 [2007-12-18 17:43 UTC] rlee0001 (Robert Lee)
Description: ------------ Two notices are thrown when using the setColumn method in the Worksheet class: Notice: Undefined variable: colFirst in /usr/share/php/Spreadsheet/Excel/Writer/Worksheet.php on line 2330 Notice: Undefined variable: colLast in /usr/share/php/Spreadsheet/Excel/Writer/Worksheet.php on line 2330 This line is in the _storeColinfo() method, which does in fact reference colFirst and colLast without defining them. Test script: --------------- <?php ... $sheet->setColumn($colIndex, $colIndex, 20); ... ?> Expected result: ---------------- This method should set the width of the specified column(s). Actual result: -------------- The spreadsheet is corrupted because these two "notice" errors are inserted at the top of the file.

Comments

 [2009-11-29 08:40 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Closed -Assigned To: +Assigned To: cschmitz
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/