note 19256 added to function.socket-bind
| From: | tlittle at deepdesign dot com dot au | Date: | Thu, 21 Feb 2002 02:47:39 +0000 |
| Subject: | note 19256 added to function.socket-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26873@lists.php.net to get a copy of this message | ||
The return value from this function (as of PHP 4.1.1) is actually a boolean: true on success, and
false on failure. I was testing for a return value < 0 which of course never happened even when
I couldn't bind the socket.
This consumed about half an hour, but I can't say I wasn't warned :) *Believe* the
warning about experimental features, and always check that it behaves as documented. Avoid
experimental features altogether if possible (unfortunately not always an option).
--
http://www.php.net/manual/en/function.socket-bind.php
http://master.php.net/manage/user-notes.php?action=edit+19256
http://master.php.net/manage/user-notes.php?action=delete+19256
http://master.php.net/manage/user-notes.php?action=reject+19256