summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-08-05 16:44:06 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-08-05 16:44:06 +0200
commitaf64001dcb6a446247bab4750d8fdd98ad0732a4 (patch)
tree7e50a05b1643e860932f932785cf6207b7abd0d9 /ext
parent25d849d40b42ff8384beda0e8b93ef63fae11739 (diff)
downloadphp-git-af64001dcb6a446247bab4750d8fdd98ad0732a4.tar.gz
Normalize error message capitalization
Diffstat (limited to 'ext')
-rw-r--r--ext/sockets/sendrecvmsg.c2
-rw-r--r--ext/sockets/tests/socket_sendrecvmsg_error.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/sendrecvmsg.c b/ext/sockets/sendrecvmsg.c
index f03fdb0c63..f7b0b8bf51 100644
--- a/ext/sockets/sendrecvmsg.c
+++ b/ext/sockets/sendrecvmsg.c
@@ -194,7 +194,7 @@ PHP_FUNCTION(socket_sendmsg)
if (res != -1) {
RETVAL_LONG((zend_long)res);
} else {
- PHP_SOCKET_ERROR(php_sock, "error in sendmsg", errno);
+ PHP_SOCKET_ERROR(php_sock, "Error in sendmsg", errno);
RETVAL_FALSE;
}
diff --git a/ext/sockets/tests/socket_sendrecvmsg_error.phpt b/ext/sockets/tests/socket_sendrecvmsg_error.phpt
index 8700b4184c..a91f7b4132 100644
--- a/ext/sockets/tests/socket_sendrecvmsg_error.phpt
+++ b/ext/sockets/tests/socket_sendrecvmsg_error.phpt
@@ -10,6 +10,6 @@ socket_recvmsg($socket, $message, -1);
?>
--EXPECTF--
-Warning: socket_sendmsg(): error in sendmsg [%d]: %a in %s on line %d
+Warning: socket_sendmsg(): Error in sendmsg [%d]: %a in %s on line %d
Warning: socket_recvmsg(): Error in recvmsg [%d]: %a in %s on line %d