#11828 [Com]: Useless flock()

From: Date: Thu, 21 Oct 2004 12:29:05 +0000
Subject: #11828 [Com]: Useless flock()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67894@lists.php.net to get a copy of this message
 ID:               11828
 Comment by:       mozz at cwcom dot net
 Reported By:      "Hot Soon" <princeali at 263 dot net>
 Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Windows 98 SE
 PHP Version:      4.0.6
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2001-08-02 16:19:35] andy@php.net

i don't believe win32 can use flock, but anyway no user
feedback.  closing...

------------------------------------------------------------------------

[2001-07-02 06:09:33] hholzgra@php.net

CGI or server module ?

------------------------------------------------------------------------

[2001-07-02 03:56:12] wez@php.net

Does Win32 implement flock()??
That might be why it doesn't do anything...
--Wez.


------------------------------------------------------------------------

[2001-07-02 02:55:38] derick@php.net

Please provide a short reproducing script.

------------------------------------------------------------------------

[2001-07-01 21:38:39] "Hot Soon" <princeali at 263 dot net>

Both flock($fp,1) and flock($fp,2) always return false.
It makes flock() a useless function.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=11828&edit=1


Thread (1 message)

  • mozz at cwcom dot net
  • Unknown Message
    • mozz at cwcom dot net
« previous php.bugs (#67894) next »