php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26975 locking support in file_get_contents / file_put_contents
Submitted: 2004-01-20 06:55 UTC Modified: 2010-11-19 00:24 UTC
From: magg at mail dot com Assigned: jani (profile)
Status: Closed Package: Filesystem function related
PHP Version: * OS: Linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: magg at mail dot com
New email:
PHP Version: OS:

 

 [2004-01-20 06:55 UTC] magg at mail dot com
Description:
------------
It would be very nice to have a add a flag like USE_FLOCK or something on these functions. Default shared on get and exclusive on put.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-11 19:58 UTC] nlopess@php.net
file_put_contents exclusive lock was implemented (PHP 5.1).
not sure about the shared lock in file_get_contents().
 [2010-11-19 00:24 UTC] jani@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: Filesystem function related -Assigned To: +Assigned To: jani
 [2010-11-19 00:24 UTC] jani@php.net
Instead of file_get_contents, use stream_get_contents().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC