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
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: "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: Thu Dec 26 15:01:32 2024 UTC