#42381 [Opn->Bgs]: Double-flock()ing a file crashes
| From: | stas@php.net | Date: | Thu, 23 Aug 2007 01:00:14 +0000 |
| Subject: | #42381 [Opn->Bgs]: Double-flock()ing a file crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116508@lists.php.net to get a copy of this message | ||
ID: 42381
Updated by: stas@php.net
Reported By: phpbugs dot 20 dot zsh at spamgourmet dot com
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.2.3
New Comment:
Can't reproduce ceashing. What you probably seeing is php waiting on
flock until it's killed by the timeout thread.
Previous Comments:
------------------------------------------------------------------------
[2007-08-22 15:13:55] phpbugs dot 20 dot zsh at spamgourmet dot com
Description:
------------
Double-flock()ing a file with different handles crashes.
Reproduce code:
---------------
<?php
$fp = fopen('generic-textfile.txt', 'w');
flock($fp, LOCK_EX);
$fp2 = fopen('generic-textfile.txt', 'w');
flock($fp2, LOCK_EX);
echo 'Dun!';
?>
Expected result:
----------------
Dun!
Actual result:
--------------
Nothing
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42381&edit=1