Lines Matching refs:nr_bytes
204 static int php_openssl_handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init) /* {{{… in php_openssl_handle_ssl_error() argument
207 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_handle_ssl_error()
227 if (nr_bytes == 0) { in php_openssl_handle_ssl_error()
1991 int nr_bytes = 0; in php_openssl_sockop_io() local
2039 nr_bytes = SSL_read(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2044 nr_bytes = 0; in php_openssl_sockop_io()
2049 nr_bytes = SSL_write(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2058 if (nr_bytes <= 0) { in php_openssl_sockop_io()
2061 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); in php_openssl_sockop_io()
2062 retry = php_openssl_handle_ssl_error(stream, nr_bytes, 0); in php_openssl_sockop_io()
2096 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_sockop_io()
2119 if (nr_bytes > 0) { in php_openssl_sockop_io()
2120 php_stream_notify_progress_increment(PHP_STREAM_CONTEXT(stream), nr_bytes, 0); in php_openssl_sockop_io()
2128 return 0 > nr_bytes ? 0 : nr_bytes; in php_openssl_sockop_io()
2130 size_t nr_bytes = 0; in php_openssl_sockop_io() local
2134 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2136 nr_bytes = php_stream_socket_ops.write(stream, buf, count); in php_openssl_sockop_io()
2139 return nr_bytes; in php_openssl_sockop_io()