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

Bug #7840 Notices on default formats
Submitted: 2006-06-08 15:35 UTC Modified: 2006-09-21 07:19 UTC
From: kostya dot belov at gmail dot com Assigned: tuupola
Status: Closed Package: Spreadsheet_Excel_Writer (version 0.9.0)
PHP Version: 5.1.4 OS: Linux
Roadmaps: (Not assigned)    

 [2006-06-08 15:35 UTC] kostya dot belov at gmail dot com (Konstantin Belov)
Description: ------------ On max error_reporting level I have got notices at /usr/local/lib/php/Spreadsheet/Excel/Writer/Worksheet.php. Line numbers: 1233 and 1686. What's happenning: at line 3502 default value for $format parameter is ZERO. At line 1233 $format is compared to ZERO and that is ok, unless you pass OBJECT as format parameter to writeNumber function. In that case PHP 5.1.4 produces notice "attempt to convert OBJECT to INT". Solution: use "null" as default value for $format argument of writeNumber and compare it to "null" but not ZERO (integer).


 [2006-06-22 07:30 UTC] pear dot php dot net at chsc dot dk (Christian Schmidt)
This is a duplicate of bug 6509.
 [2006-09-21 07:19 UTC] tuupola at php dot net (Mika Tuupola)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.