I want to get rid of the version on php in /urs/local, how do I do this? There is no src to do a "make uninstall" from. I deleted some file/directories, but when I do "php -v" it's still looking for the version in /usr/local/bin instead of /usr/bin.
-Josh > -----Original Message----- > From: Philip Olson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 3:21 PM > To: Josh Close > Subject: RE: [PHP] socket_set_block undefined > > > > That sounds about right :) After sending my first > reply I realized it was the most likely reason, I > can see why you went down the "name could have > changed" track... I knew it wasn't the case as in > PHP names were only changed to give proper names > like socket_set_block as opposed to setsocketblock > or whatever. Good luck :) > > Regards, > Philip > > > > > On Fri, 25 Jun 2004, Josh Close wrote: > > > I'm installing a new version right now. I found there was > two cli versions, > > when i typed > > > > /usr/bin/php -v > > > > i got version 4.1.2 so i'm reinstalling a new version. > There was actually 3 > > versions of php on this box. how annoying. > > > > -Josh > > > > > > > > > -----Original Message----- > > > From: Philip Olson [mailto:[EMAIL PROTECTED] > > > Sent: Friday, June 25, 2004 2:39 PM > > > To: Josh Close > > > Cc: PHP (E-mail) > > > Subject: RE: [PHP] socket_set_block undefined > > > > > > > > > > > > Perhaps you have multiple PHP versions on your system? Like > > > an old CLI or CGI laying around somewhere? Maybe try checking > > > the PHP version in the code as well. If it's not that then > > > I have no idea. > > > > > > Regards, > > > Philip > > > > > > On Fri, 25 Jun 2004, Josh Close wrote: > > > > > > > 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