php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32083 stream_set_blocking : mode boolean or integer ?
Submitted: 2005-02-23 20:14 UTC Modified: 2005-02-23 20:41 UTC
From: jsgoupil at lookstrike dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsgoupil at lookstrike dot com
New email:
PHP Version: OS:

 

 [2005-02-23 20:14 UTC] jsgoupil at lookstrike dot com
Description:
------------
In the doc : en/function.stream-set-blocking.php
It says that the mode is an integer but you give only TRUE or FALSE for the mode.
So, perhaps it is a bool argument or more explanations about the mode should be written.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-23 20:40 UTC] et@php.net
From the source, it's definitely an integer. But a boolean would make more sense to me. Or the docs need to change to "if mode is 0, [...], and if otherwise, [...]"
 [2005-02-23 20:41 UTC] nlopess@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.

The proto is right (int). You can use true/false because they are converted to 1/0. I've changed the values.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=eace5fc2989ab9aaee0e1d8d694eb2a0578e9259
Log: fix #32083: inconsistencies between proto and description
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 08:01:29 2024 UTC