mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +08:00
- Fixed bug #60048 (sa_len a #define on IRIX)
patch by: china at thewrittenword dot com
This commit is contained in:
parent
bbf59ae4da
commit
4168e0dfe4
@ -1052,7 +1052,7 @@ PHP_FUNCTION(socket_accept)
|
||||
zval *arg1;
|
||||
php_socket *php_sock, *new_sock;
|
||||
php_sockaddr_storage sa;
|
||||
socklen_t sa_len = sizeof(sa);
|
||||
socklen_t php_sa_len = sizeof(sa);
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &arg1) == FAILURE) {
|
||||
return;
|
||||
@ -1060,7 +1060,7 @@ PHP_FUNCTION(socket_accept)
|
||||
|
||||
ZEND_FETCH_RESOURCE(php_sock, php_socket *, &arg1, -1, le_socket_name, le_socket);
|
||||
|
||||
if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &sa_len TSRMLS_CC)) {
|
||||
if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len TSRMLS_CC)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user