Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001504 [Quercus] feature always 12-10-06 08:47 01-04-07 14:34
Reporter at4u View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform GNU/Linux
Status closed   OS Gentoo Linux
Projection none   OS Version N/A
ETA none Fixed in Version 3.1.1 Product Version 3.0.22
  Product Build
Summary 0001504: flock isn't available
Description Hi,

while testing Resin 3.0.22 / Quercus I found out that flock seems to be not implemented or not returning TRUE on success.

Script:
<?php
$f_fp = fopen ("test.xml","r");

$f_counter = 3;

if ($f_fp)
{
 do
 {
  if (flock ($f_fp,LOCK_SH)) { $f_counter = -1; }
  else
  {
   $f_counter--;
   sleep (1);
  }
 }
 while ($f_counter > 0);

 if ($f_counter > -1) { echo "LOCK_SH failed"; }
 else { echo "LOCK_SH successfully"; }

 fclose ($f_fp);
}
?>

This script will always result in "LOCK_SH failed". It returns "LOCK_SH successfully" while being executed by a Apache/PHP combination.
Steps To Reproduce
Additional Information ferg set bug 0000634 to the status "closed". If this means that flock is implemented, than something doesn't work as expected.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-10-06 08:47 at4u New Issue
01-04-07 14:34 ferg Assigned To  => ferg
01-04-07 14:34 ferg Status new => closed
01-04-07 14:34 ferg Resolution open => fixed
01-04-07 14:34 ferg Fixed in Version  => 3.1.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker