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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Mar 29 15:01:28 2024 UTC