php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Pull Requests

History

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

 [2001-07-02 06:09 UTC] hholzgra@php.net
CGI or server module ?
 [2001-08-02 16:19 UTC] andy@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC