CVS update: php3/functions

From: Date: Fri, 28 May 1999 15:41:27 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6172@lists.php.net to get a copy of this message
Date: Friday May 28, 1999 @ 11:41 Author: sas Update of /repository/php3/functions In directory php:/tmp/cvs-serv10550 Modified Files: fsock.c Log Message: cleanup Index: php3/functions/fsock.c diff -u php3/functions/fsock.c:1.109 php3/functions/fsock.c:1.110 --- php3/functions/fsock.c:1.109 Fri May 28 10:52:46 1999 +++ php3/functions/fsock.c Fri May 28 11:41:26 1999 @@ -27,7 +27,7 @@ | Jim Winstead (jimw@php.net) | +----------------------------------------------------------------------+ */ -/* $Id: fsock.c,v 1.109 1999/05/28 14:52:46 sas Exp $ */ +/* $Id: fsock.c,v 1.110 1999/05/28 15:41:26 sas Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -363,14 +363,14 @@ } /* }}} */ -/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr]]) +/* {{{ proto int fsockopen(string hostname, int port [, int errno [, string errstr [, int timeout]]]) Open Internet or Unix domain socket connection */ PHP_FUNCTION(fsockopen) { _php3_fsockopen(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); } /* }}} */ -/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr]]) +/* {{{ proto int pfsockopen(string hostname, int port [, int errno [, string errstr [, int timeout]]]) Open persistent Internet or Unix domain socket connection */ PHP_FUNCTION(pfsockopen) { @@ -378,7 +378,7 @@ } /* }}} */ -#define DESTROY_SOCK(sock) \ +#define SOCK_DESTROY(sock) \ if(sock->readbuf) pefree(sock->readbuf, sock->persistent); \ if(sock == phpsockbuf) \ phpsockbuf = sock->next; \ @@ -391,7 +391,7 @@ for(now = phpsockbuf; now; now = next) { next = now->next; if(now->persistent == persistent) { - DESTROY_SOCK(now); + SOCK_DESTROY(now); } } } @@ -440,7 +440,7 @@ sock = _php3_sock_find(socket); if(sock) { ret = 1; - DESTROY_SOCK(sock); + SOCK_DESTROY(sock); } return ret; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#6172) next »