ID: 24629
User updated by: zparta at skebo dot ac
Reported By: zparta at skebo dot ac
-Status: Feedback
+Status: Open
Bug Type: Sockets related
Operating System: FreeBSD 4.8
PHP Version: 4.3.3RC1
New Comment:
Reproduce code:
---------------
$this->_address = 'irc.homelien.no';
$this->_port = '6667';
$this->_socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$result = @socket_connect($this->_socket, $this->_address,
$this->_port);
while ($this->_state() == SMARTIRC_STATE_CONNECTED) {
$this->_checkbuffer();
$timeout = $this->_selecttimeout();
if ($this->_usesockets == true) {
$sread = array($this->_socket);
$result = @socket_select($sread, $w = null, $e = null,
0, $timeout*1000);
if ($result == 1) {
// the socket got data to read
$rawdata = @socket_read($this->_socket, 10240);
} else if ($result === false) {
// panic! panic! something went wrong!
$this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING:
socket_select() returned false, something went wrong! Reason:
'.socket_strerror(socket_last_error()), __FILE__, __LINE__);
exit;
} else {
// no data
$rawdata = null;
}
//this code is taken from the Net_SmartIRC class from pear
Expected result:
----------------
Jul 13 03:47:04 SmartIRC.php(1636) WARNING: socket_select() returned
false, something went wrong! Reason: Invalid argument
and the author of Net_SmartIRC has tested this on my machine and he
says that i should bugreport this here because socket_select doesnt
work on freebsd 4.8 dont know if it is version specific.
Previous Comments:
------------------------------------------------------------------------
[2003-07-12 20:27:55] [EMAIL PROTECTED]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-07-12 20:23:18] zparta at skebo dot ac
Description:
------------
cant use socket_select in freebsd with neither 4.3.3rc1 or 4.3.2 when
using real sockets not fsockets
Reproduce code:
---------------
dont have any
Expected result:
----------------
dont know
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24629&edit=1