php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65271 Type problem on the flock() documentation
Submitted: 2013-07-16 14:58 UTC Modified: 2013-08-19 05:41 UTC
From: benjamin dot morel at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: benjamin dot morel at gmail dot com
New email:
PHP Version: OS:

 

 [2013-07-16 14:58 UTC] benjamin dot morel at gmail dot com
Description:
------------
The manual page for flock():
http://php.net/manual/en/function.flock.php

Says that the third argument will be set to TRUE, but it's actually an integer, 
which will be set to 1 (confirmed by testing).

Expected result:
----------------
The optional third argument is set to 1 if the lock would block (EWOULDBLOCK errno 
condition).

Actual result:
--------------
The optional third argument is set to TRUE if the lock would block (EWOULDBLOCK 
errno condition).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-19 05:41 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331153
Log: implied type incorrect #65271
 [2013-08-19 05:41 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-08-19 05:41 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC