summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2002-05-02 16:45:22 +0000
committerJason Greene <jason@php.net>2002-05-02 16:45:22 +0000
commit89c59569ba5dcfb51a6b51e13c25a47d77055ddd (patch)
tree2cf0421b2d766ff1d1e943fa5fccdb6571386e38 /ext
parentedba07700096951418d4eb075ca9bcd15bcb10a2 (diff)
downloadphp-git-89c59569ba5dcfb51a6b51e13c25a47d77055ddd.tar.gz
socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes
Diffstat (limited to 'ext')
-rw-r--r--ext/sockets/sockets.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index e9222ce71b..be4288f498 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -720,8 +720,7 @@ PHP_FUNCTION(socket_write)
#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;
}