Bug #7554 [Com]: Exclusive flock() breaks client/server communication
| From: | giw42161 at uooos dot com | Date: | Sat, 26 Mar 2022 05:05:16 +0000 |
| Subject: | Bug #7554 [Com]: Exclusive flock() breaks client/server communication | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-240504@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=7554&edit=1
ID: 7554
Comment by: giw42161 at uooos dot com
Reported by: php at develnet dot org
Summary: Exclusive flock() breaks client/server communication
Status: Closed
Type: Bug
Package: Filesystem function related
Operating System: RedHat 6.2
PHP Version: 4.0.3pl1
Block user comment: N
Private report: N
New Comment:
(https://centurylawfirm.in/)gist.github.com
Best lawyer in India
Previous Comments:
------------------------------------------------------------------------
[2000-11-01 07:54:29] stas@php.net
closed on user request
------------------------------------------------------------------------
[2000-10-31 14:50:44] php at develnet dot org
A 2nd exclusive flock() - or a try to do so - causes a kind of infinite loop. Browser(s) are not
responding. The Apache-process is allowed to write to /tmp.
$fp1 = fopen("/tmp/test.txt","a");
if (!$fp1) die("cant open file 1");
if (!flock($fp1,2)) die("cant lock file 1");
$fp2 = fopen("/tmp/test.txt","a");
if (!$fp2) die("cant open file 2");
// causes troubles
if (!flock($fp2,2)) die("cant lock file 2");
fclose($fp2);
fclose($fp1)
My configure:
'./configure' '--with-apxs=/usr/local/httpd/bin/apxs'
'--with-config-file-path=/usr/local/httpd/conf' '--enable-track-vars'
'--with-gdbm' '--enable-ftp' '--with-gd'
'--with-ttf=/usr/include/freetype' '--enable-sysvshm'
'--enable-sysvsem' '--with-openssl=../openssl-0.9.5a'
'--with-imap=../imap-4.7c' '--with-pdflib' '--enable-sockets'
'--with-mysql=/usr/local/mysql' '--with-oci8=/opt/oracle/product/8.1.5'
'--with-sablot'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=7554&edit=1