PHP 4.0 Bug #9203: flock doesn't work properly on Windows 2000

From: Date: Sat, 10 Feb 2001 05:35:24 +0000
Subject: PHP 4.0 Bug #9203: flock doesn't work properly on Windows 2000
Groups: php.dev 
Request: Send a blank email to php-dev+get-46126@lists.php.net to get a copy of this message
From: davidspe@yahoo.com Operating system: NT PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: flock doesn't work properly on Windows 2000 #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 Bug report at: http://bugs.php.net/?id=9203&edit=1

« previous php.dev (#46126) next »