note 87490 added to function.socket-read
| From: | EllisGL at osu1 dot php dot net | Date: | Sun, 07 Dec 2008 04:16:54 +0000 |
| Subject: | note 87490 added to function.socket-read | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147778@lists.php.net to get a copy of this message | ||
When testing for a disconnect:
$input = socket_read($spawn, 1024);
if($input === false)
{
...
}
will not work. Even thou the docs say it returns false, the triple equals (identity operator)
doesn't return true.. argh...
if($input == false)
{
...
}
Does work...
----
Server IP: 208.69.120.35
Probable Submitter: 71.96.218.146
----
Manual Page -- http://www.php.net/manual/en/function.socket-read.php
Edit -- https://master.php.net/note/edit/87490
Del: integrated -- https://master.php.net/note/delete/87490/integrated
Del: useless -- https://master.php.net/note/delete/87490/useless
Del: bad code -- https://master.php.net/note/delete/87490/bad+code
Del: spam -- https://master.php.net/note/delete/87490/spam
Del: non-english -- https://master.php.net/note/delete/87490/non-english
Del: in docs -- https://master.php.net/note/delete/87490/in+docs
Del: other reasons-- https://master.php.net/note/delete/87490
Reject -- https://master.php.net/note/reject/87490
Search -- https://master.php.net/manage/user-notes.php