Well, here's the code i'm using. Let me know if I'm doing something silly. if(!socket_set_nonblock($this->socket)){ if($this->logging){ syslog(LOG_ERR, "Could not set socket to nonblock."); } exit(); }
//connection part goes here if(!socket_set_block($this->socket)){ if($this->logging){ syslog(LOG_ERR, "Could not set socket to block."); } exit(); } if($this->loggging){ syslog(LOG_INFO, "Socket set to block."); } .... and here's the error Fatal error: Call to undefined function: socket_set_block() -Josh > -----Original Message----- > From: Philip Olson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 2:11 PM > To: Josh Close > Cc: PHP (E-mail) > Subject: Re: [PHP] socket_set_block undefined > > > > > I'm trying to use socket_set_block and php.net says (php4 > >= 4.2, php5). > > > > I'm using version 4.3.1 but I get this error > > > > Fatal error: Call to undefined function: > socket_set_block() in ..... > > > > Any idea why this is? Has the name changed or been something else? > > > > socket_set_nonblock() work fine. > > Strange as the name has not changed and the function > requires nothing special (no IF block around it), here's > the source: > > http://lxr.php.net/source/php-src/ext/sockets/sockets.c#715 > > Since socket_set_nonblock() exists you must have > the socket extension available so this is odd. > Are you sure this problem exists and it's not > something silly? Seems like an impossible problem > assuming your php source wasn't modified :) > > Regards, > Philip > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php