|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-23 19:10 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 12:00:01 2025 UTC |
Description: ------------ There seam to be several logical implementation faults, concerning flock() and dio_open() 1.) Opening a file by the first process with $fh = dio_open($dateiname,O_RDWR + O_NONBLOCK ,0 ); does not trigger a failure opening the file twice by an other process with the same method You always get the ressource handle 2.) Opening the file twice, after having opened with upper method, by the flock(..., LOCK_NB) function, causes a waiststate for the flock() process. That problem should be solved. Remark: Mandatory locking on LINUX only works, if You mount the volume with option "mand" (-o mand) (missing Information in documentation) Programs like vi nevertheless are able to override the "mandatory locking" with the "x!" command. (only checked for a LINUX Debian Woody system) Expected result: ---------------- Triggering a failure (return false) Actual result: -------------- Waiting for locking