mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Eliminate useless separations
This commit is contained in:
parent
19bf64cd61
commit
67e47c3ee3
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue