summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2019-07-13 02:05:17 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-07-13 02:05:17 +0200
commit1c1de0c41a74b4deadd11cb18f00f115db0568ec (patch)
tree21bf6e0bb1993a0dd7bb304a3abca026cc7ab7a8 /ext/sockets
parent33994ebd95c3c42b0dca4e0f161692ecee7d741b (diff)
downloadphp-git-1c1de0c41a74b4deadd11cb18f00f115db0568ec.tar.gz
Convert all php_error_docref0 to php_error_docref
Closes GH-4394
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/conversions.c2
-rw-r--r--ext/sockets/sendrecvmsg.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/sockets/conversions.c b/ext/sockets/conversions.c
index cbddc9d096..b7dae45407 100644
--- a/ext/sockets/conversions.c
+++ b/ext/sockets/conversions.c
@@ -199,7 +199,7 @@ static void do_to_zval_err(res_context *ctx, const char *fmt, ...)
void err_msg_dispose(struct err_s *err)
{
if (err->msg != NULL) {
- php_error_docref0(NULL, err->level, "%s", err->msg);
+ php_error_docref(NULL, err->level, "%s", err->msg);
if (err->should_free) {
efree(err->msg);
}
diff --git a/ext/sockets/sendrecvmsg.c b/ext/sockets/sendrecvmsg.c
index 27bee1edce..ce3cb79605 100644
--- a/ext/sockets/sendrecvmsg.c
+++ b/ext/sockets/sendrecvmsg.c
@@ -71,7 +71,7 @@ inline ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags)
#define LONG_CHECK_VALID_INT(l) \
do { \
if ((l) < INT_MIN && (l) > INT_MAX) { \
- php_error_docref0(NULL, E_WARNING, "The value " ZEND_LONG_FMT " does not fit inside " \
+ php_error_docref(NULL, E_WARNING, "The value " ZEND_LONG_FMT " does not fit inside " \
"the boundaries of a native integer", (l)); \
return; \
} \
@@ -292,14 +292,14 @@ PHP_FUNCTION(socket_cmsg_space)
LONG_CHECK_VALID_INT(n);
if (n < 0) {
- php_error_docref0(NULL, E_WARNING, "The third argument "
+ php_error_docref(NULL, E_WARNING, "The third argument "
"cannot be negative");
return;
}
entry = get_ancillary_reg_entry(level, type);
if (entry == NULL) {
- php_error_docref0(NULL, E_WARNING, "The pair level " ZEND_LONG_FMT "/type " ZEND_LONG_FMT " is "
+ php_error_docref(NULL, E_WARNING, "The pair level " ZEND_LONG_FMT "/type " ZEND_LONG_FMT " is "
"not supported by PHP", level, type);
return;
}
@@ -307,7 +307,7 @@ PHP_FUNCTION(socket_cmsg_space)
if (entry->var_el_size > 0 && n > (zend_long)((ZEND_LONG_MAX - entry->size -
CMSG_SPACE(0) - 15L) / entry->var_el_size)) {
/* the -15 is to account for any padding CMSG_SPACE may add after the data */
- php_error_docref0(NULL, E_WARNING, "The value for the "
+ php_error_docref(NULL, E_WARNING, "The value for the "
"third argument (" ZEND_LONG_FMT ") is too large", n);
return;
}
@@ -331,7 +331,7 @@ int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname,
case IPV6_PKTINFO:
#ifdef PHP_WIN32
if (Z_TYPE_P(arg4) == IS_ARRAY) {
- php_error_docref0(NULL, E_WARNING, "Windows does not "
+ php_error_docref(NULL, E_WARNING, "Windows does not "
"support sticky IPV6_PKTINFO");
return FAILURE;
} else {