iBlog - Ilia Alshanetsky · Jul 27, 2026
The Cost of Failing Closed: What Shipped Across Nine PHP Extensions
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Making ExcelBook::save() atomic is easy to describe. Write the workbook to a temporary file, then rename it into place. A save that dies halfway leaves the original file untouched. The obvious way to build that staged file is to ask LibXL for the finished archive as one buffer and write the buffer out. It works. It also costs 67.7 MB of peak RSS on a 3.3 MB workbook, and the PHP-side copy counts…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.