|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11828 Useless flock()
Submitted: 2001-07-01 21:38 UTC Modified: 2001-08-02 16:19 UTC
From: "Hot Soon" <princeali at 263 dot net> Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: Windows 98 SE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: "Hot Soon" <princeali at 263 dot net>
New email:
PHP Version: OS:


 [2001-07-01 21:38 UTC] "Hot Soon" <princeali at 263 dot net>
Both flock($fp,1) and flock($fp,2) always return false.
It makes flock() a useless function.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-02 02:55 UTC]
Please provide a short reproducing script.
 [2001-07-02 03:56 UTC]
Does Win32 implement flock()??
That might be why it doesn't do anything...

 [2001-07-02 06:09 UTC]
CGI or server module ?
 [2001-08-02 16:19 UTC]
i don't believe win32 can use flock, but anyway no user
feedback.  closing...
 [2004-10-21 14:28 UTC] mozz at cwcom dot net
Yes, windoze does support file locking, but has an overlap based mechanism, rather than a byte region one (UNIX). Use the LockFile, LockFileEx and UnlockFile functions.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 06:05:52 2022 UTC