For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > February 2005 > #32083 [Opn->Csd]: stream_set_blocking : mode boolean or integer ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #32083 [Opn->Csd]: stream_set_blocking : mode boolean or integer ?
nlopess@php.net

2005-02-23, 8:56 pm

ID: 32083
Updated by: nlopess@php.net
Reported By: jsgoupil at lookstrike dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2005-02-23 20:40:47] 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:14:29] 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.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=32083&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com