mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes
This commit is contained in:
parent
edba077000
commit
89c59569ba
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue