#20380 [Opn]: stream_set_blocking() hangs
| From: | wweburg at maxis dot com | Date: | Tue, 12 Nov 2002 04:38:55 +0000 |
| Subject: | #20380 [Opn]: stream_set_blocking() hangs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24662@lists.php.net to get a copy of this message | ||
ID: 20380
User updated by: wweburg@maxis.com
Reported By: wweburg@maxis.com
Status: Open
-Bug Type: Filesystem function related
+Bug Type: Sockets related
-Operating System: Linux Redhat 2.4
+Operating System: Linux Redhat, kernel 2.4
PHP Version: 4.2.3
New Comment:
Not sure if this is filesystem related or socket related; changing
category to sockets related.
Previous Comments:
------------------------------------------------------------------------
[2002-11-11 22:31:43] wweburg@maxis.com
When using stream_set_blocking() in place of either
socket_set_blocking() or set_socket_blocking(), the script hangs. The
call method is:
$fp = FSockOpen([valid connection data to internal network resource]);
stream_set_blocking($fp, FALSE);
The script operates normally when using socket_set_blocking, but
complains via E_NOTICE error when set_socket_blocking is used, stating
that it's deprecated and socket_set_blocking should be used. In the PHP
manual, socket_set_blocking is an alias for stream_set_blocking. In the
stream_set_blocking documentation, it states that both
set_socket_blocking and socket_set_blocking are deprecated.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20380&edit=1