Edit report at https://pear.php.net/bugs/bug.php?id=17019&edit=1

ID: 17019
Updated by: daniel.oconnor@gmail.com
Reported By: dlassing at gmail dot com
Summary: Too many open files
-Status: Open
+Status: Feedback
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Solaris
Package Version: 0.9.2
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
Are you able to turn this into a patch and send in a pull request
please? I'll apply

Previous Comments:

[2010-01-21 15:10:14] dlassing

Our production server runs on Solaris which has set a limit of 256
maximum open files (or descriptors). Every worksheet you add to the
workbook causes the code to open a temporary file (worksheet.php line
474). When no more temporary files can be opened (in my case due to
exhaustion of available file descriptors) it continues to store the
sheets in the memory. But because all the file descriptors has been
exhausted the workbook itself cannot be created anymore when
$workbook->close() is being called causing the "too many open files"

Work-around I used:
Changing " $fh = tmpfile(); " to " $fh = false; " on line 477 in
Worksheet.php resolved it for me (causing all sheets to be stored in
memory rather than on disk).


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJan 26, '12 at 2:19a
activeJan 26, '12 at 2:19a

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase