Eliminate useless separations

This commit is contained in:
Dmitry Stogov 2018-01-17 12:45:23 +03:00
parent 19bf64cd61
commit 67e47c3ee3
2 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ PHP_FUNCTION(socket_recvmsg)
struct err_s err = {0};
//ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags);
if (zend_parse_parameters(ZEND_NUM_ARGS(), "ra/|l",
if (zend_parse_parameters(ZEND_NUM_ARGS(), "ra|l",
&zsocket, &zmsg, &flags) == FAILURE) {
return;
}
@ -256,7 +256,7 @@ PHP_FUNCTION(socket_recvmsg)
msghdr = NULL;
allocations_dispose(&allocations);
zval_dtor(zmsg);
zval_ptr_dtor(zmsg);
if (!err.has_error) {
ZVAL_COPY_VALUE(zmsg, zres);
} else {

View file

@ -919,7 +919,7 @@ PHP_FUNCTION(socket_select)
int retval, sets = 0;
zend_long usec = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "a/!a/!a/!z!|l", &r_array, &w_array, &e_array, &sec, &usec) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "a!a!a!z!|l", &r_array, &w_array, &e_array, &sec, &usec) == FAILURE) {
return;
}