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: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: holger dot schletz at web dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC