|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-16 23:48 UTC] gutza at moongate dot ro
[2009-05-17 13:51 UTC] bjori@php.net
[2009-11-19 10:37 UTC] svn@php.net
[2009-11-19 10:37 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jun 17 06:00:02 2026 UTC |
Description: ------------ The documentation page for flock() should clearly state that $handle is symbolically linked. Reproduce code: --------------- <?php $fo = fopen('lockfile.txt','a'); flock($fo,LOCK_EX); $fo = ''; // Lock is disable ?> (This is a copy of mallory dot dessaintes at gmail dot com's User Contributed Note on that page) Expected result: ---------------- Given PHP's usual behavior related to variables, one would expect either that (1) flock() wasn't affected by any subsequent change of $handler, or (2) that this peculiarity would be explicitly documented. Actual result: -------------- Neither of the above. If (1) isn't an option, (2) should be implemented -- that is, the documentation should mention this explicitly.