note 87490 deleted from function.socket-read by danbrown
| From: | danbrown@php.net | Date: | Fri, 09 Jan 2009 01:03:46 +0000 |
| Subject: | note 87490 deleted from function.socket-read by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148975@lists.php.net to get a copy of this message | ||
Note Submitter: EllisGL
----
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...