Edit report at http://pear.php.net/bugs/bug.php?id=18859&edit=1
ID: 18859
Updated by: daniel.oconnor@gmail.com
Reported By: e at narod dot ru
Summary: Function _processBitmap($bitmap) doesn't close image
file
-Status: Open
+Status: Feedback
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows XP
Package Version: 0.9.2
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
-Status: Open
+Status: Feedback
Hi,
Any chance of a test script that demonstrates this or why this is a
problem in
particular? (fclose() type things happen at the end of executing the
script anyway
iirc; as part of PHP)
Previous Comments:
------------------------------------------------------------------------
[2011-09-22 10:49:40] electronic
Description:
------------
There is $bmp_fd = @fopen($bitmap,"rb") inside
_processBitmap() function in Worksheet.php, but there is no
matching fclose(). You need to add fclose($bmp_fd) after $data =
fread($bmp_fd, filesize($bitmap));
------------------------------------------------------------------------