php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71264 file_put_contents() returns unexpected value when filesystem runs full
Submitted: 2016-01-02 18:56 UTC Modified: -
From: holger dot schletz at web dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 7.0.1 OS: Arch Linux, Kernel 4.3.3-2-ARCH
Private report: No CVE-ID:
 [2016-01-02 18:56 UTC] holger dot schletz at web dot de
Description:
------------
Regression from PHP5: file_put_contents() returns -1 if there is not enough free space on the target filesystem. This behavior is not documented and different from PHP 5.x which returns FALSE in that case.

Reproduced with a real (tmpfs) filesystem and a vfsStream mock.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-03 06:23 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=919562d53b539566b89baa3e551dd84c0702bc6e
Log: Fixed bug #71264 (file_put_contents() returns unexpected value when filesystem runs full)
 [2016-01-03 06:23 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:34 UTC] davey@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=919562d53b539566b89baa3e551dd84c0702bc6e
Log: Fixed bug #71264 (file_put_contents() returns unexpected value when filesystem runs full)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Mon May 29 04:01:35 2017 UTC