cvs: php4 /ext/sockets sockets.c

From: Date: Thu, 02 May 2002 16:45:33 +0000
Subject: cvs: php4 /ext/sockets sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11640@lists.php.net to get a copy of this message
jason Thu May 2 12:45:33 2002 EDT Modified files: /php4/ext/sockets sockets.c Log: socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.110 php4/ext/sockets/sockets.c:1.111 --- php4/ext/sockets/sockets.c:1.110 Wed May 1 12:38:22 2002 +++ php4/ext/sockets/sockets.c Thu May 2 12:45:22 2002 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.110 2002/05/01 16:38:22 mfischer Exp $ */ +/* $Id: sockets.c,v 1.111 2002/05/02 16:45:22 jason Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -720,8 +720,7 @@ #endif if (retval < 0) { - SOCKETS_G(last_error) = php_sock->error = errno; - php_error(E_WARNING, "%s() unable to write to socket %d [%d]: %s", get_active_function_name(TSRMLS_C), php_sock->bsd_socket, errno, php_strerror(errno)); + PHP_SOCKET_ERROR(php_sock, "unable to write to socket", errno); RETURN_FALSE; }

« previous php.cvs (#11640) next »