Bug #9203 Updated: flock doesn't work properly on Windows 2000
| From: | derick@php.net | Date: | Sat, 25 May 2002 00:25:24 +0000 |
| Subject: | Bug #9203 Updated: flock doesn't work properly on Windows 2000 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8468@lists.php.net to get a copy of this message | ||
ID: 9203
Updated by: derick@php.net
Reported By: davidspe@yahoo.com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: NT
PHP Version: 4.0.4pl1
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-02-10 00:35:24] davidspe@yahoo.com
#Dummy initial filehandle to obtain lock via
$fd = fopen('c:/temp/php_flock_test', 'a');
$locked = flock($fd,2); #Exclusive blocking lock
if (!$locked) {
print "Error: timeout obtaining lock"; exit;
}
#Second (actually used) filehandle
$fdsafe = fopen('c:/temp/php_flock_test', 'w');
fwrite($fdsafe,'Replacement text');
fclose($fdsafe);
fclose($fd);
//=================
// This will simply create the file but not put "Replacement text" in
the file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=9203&edit=1