Lines Matching refs:nr_bytes
188 static int php_openssl_handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init) /* {{{… in php_openssl_handle_ssl_error() argument
191 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_handle_ssl_error()
211 if (nr_bytes == 0) { in php_openssl_handle_ssl_error()
2051 int nr_bytes = 0; in php_openssl_sockop_io() local
2099 nr_bytes = SSL_read(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2104 nr_bytes = 0; in php_openssl_sockop_io()
2109 nr_bytes = SSL_write(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2118 if (nr_bytes <= 0) { in php_openssl_sockop_io()
2121 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); in php_openssl_sockop_io()
2122 retry = php_openssl_handle_ssl_error(stream, nr_bytes, 0); in php_openssl_sockop_io()
2156 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_sockop_io()
2179 if (nr_bytes > 0) { in php_openssl_sockop_io()
2180 php_stream_notify_progress_increment(PHP_STREAM_CONTEXT(stream), nr_bytes, 0); in php_openssl_sockop_io()
2188 return 0 > nr_bytes ? 0 : nr_bytes; in php_openssl_sockop_io()
2190 size_t nr_bytes = 0; in php_openssl_sockop_io() local
2194 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2196 nr_bytes = php_stream_socket_ops.write(stream, buf, count); in php_openssl_sockop_io()
2199 return nr_bytes; in php_openssl_sockop_io()