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

Bug #225 bug in http parsing
Submitted: 2003-11-11 21:03 UTC
From: jamesn at tocquigny dot com Assigned: xnoguer
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 4.3.2 OS: rh linux 7.1
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 : 44 - 26 = ?

 
 [2003-11-11 21:03 UTC] jamesn at tocquigny dot com
Description: ------------ when http:// is in the text that you try to write it will result in a notice as well as undefined bahavior php 4.3.2 with the latest ole and excel writer (0.5) pear modules Reproduce code: --------------- $worksheet2->write($row,0,$cname,$excel_bg); if $cname has "http://" in it then with errorr_reporting set to 2047 you receive a notice (listed in actual result) The bug is actually on line 1081 of Spreadsheet/Excel/Writer/Worksheet.php I believe it should read: return $this->writeUrl($row, $col, $token, '',$format); to match function writeUrl($row, $col, $url, $string = '', $format = 0) else $format would be going where $string is. Actual result: -------------- Notice Object to string conversion in /usr/lib/php/Spreadsheet/Excel/Writer/Worksheet.php on Line 1414

Comments

 [2003-11-12 18:58 UTC] xnoguer at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.