|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67617 SOAP leaves incomplete cache file on ENOSPC
Submitted: 2014-07-14 13:46 UTC Modified: -
From: jille at hexon dot cx Assigned:
Status: Open Package: SOAP related
PHP Version: master-Git-2014-07-14 (Git) OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
16 - 11 = ?
Subscribe to this entry?

 [2014-07-14 13:46 UTC] jille at hexon dot cx
The SOAP-extension leaves an incomplete cache file when the disk is (almost) full. It should remove the cache file if it detects an error while writing it.

The best fix will probably be to write it to a tempfile and rename() it when that succeeded. That would also solve

Expected result:
The cache file to be ignored and/or removed and/or rewritten

Actual result:
Segmentation faults and "Out of memory (allocated 196870144) (tried to allocate 18446744073340452865 bytes)" (±2^64)


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 12:03:38 2023 UTC