[xdebug-dev] Bug 0000164: flock() freeze

From: <xdebug-dev[@]lists.xdebug.org>
Date: Tue, 24 Jan 2006 22:42:36 +0100

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000164
======================================================================
Reporter: Opik
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 164
Category: Debug client (console)
Reproducibility: always
Severity: block
Priority: normal
Status: resolved
Operating System: RHEL3
PHP Version: 5.0.5
Xdebug Version: 2.0.0beta5
Resolution: unable to duplicate
======================================================================
Date Submitted: 2006-01-16 16:57 CET
Last Modified: 2006-01-24 22:42 CET
======================================================================
Summary: flock() freeze
Description:
When I use
flock($fp, LOCK_EX);
my PHP script get freezed. When I turned off xdebug extention this was OK.
======================================================================

----------------------------------------------------------------------
 derick - 2006-01-17 08:52 CET
----------------------------------------------------------------------
I need a bit more information - like a *short* reproducing script. The
flock() function itself works fine. Are you also sure you're using PHP
5.0.5?

----------------------------------------------------------------------
 Opik - 2006-01-17 22:31 CET
----------------------------------------------------------------------
Yes, Im sure, that I use PHP 5.0.5
As extentions I use also: eaccelerator and memcache. mb eaccelerator
occurs error?

----------------------------------------------------------------------
 Opik - 2006-01-17 23:33 CET
----------------------------------------------------------------------
code:
$fp = fopen($user_data_file, "r+");
if(!$fp) exit;

flock($fp, LOCK_EX); // then I comment this line, scripts works
fseek($fp,0);

----------------------------------------------------------------------
 Opik - 2006-01-18 00:14 CET
----------------------------------------------------------------------
I think it was permission error

----------------------------------------------------------------------
 derick - 2006-01-18 22:37 CET
----------------------------------------------------------------------
It's very possible that other extension affect this, and that it is not
Xdebug's fault at all. In your last comment you say that it might have
been a permission error, but for that to make sense to me you need to be a
bit more clearer. Do you mean it was an error on your site? or what was the
full error message? I also didn't see a full reproducable script (which I
can copy and paste and works immediately)

----------------------------------------------------------------------
 derick - 2006-01-24 22:42 CET
----------------------------------------------------------------------
Can't reproduce this, nor did I receive any feedback whether this still is
an issue. Please reopen when you can provide the requested information.

Bug History
Date Modified Username Field Change
======================================================================
2006-01-16 16:57Opik New Bug
2006-01-16 16:57Opik Bug Monitored: Opik
2006-01-17 08:52derick Bugnote Added: 0000331
2006-01-17 08:52derick Status new => feedback
2006-01-17 22:31Opik Bugnote Added: 0000342
2006-01-17 23:33Opik Bugnote Added: 0000348
2006-01-18 00:14Opik Bugnote Added: 0000349
2006-01-18 22:37derick Bugnote Added: 0000352
2006-01-24 22:42derick Bugnote Added: 0000364
2006-01-24 22:42derick Assigned To => derick
2006-01-24 22:42derick Resolution open => unable to duplicate
2006-01-24 22:42derick Status feedback => resolved
======================================================================
Received on Tue Jan 24 2006 - 22:42:41 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST