Lines Matching refs:nr_bytes
187 static int handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init) /* {{{ */ in handle_ssl_error() argument
190 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in handle_ssl_error()
210 if (nr_bytes == 0) { in handle_ssl_error()
1969 int nr_bytes = 0; in php_openssl_sockop_io() local
2016 nr_bytes = SSL_read(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2021 nr_bytes = 0; in php_openssl_sockop_io()
2026 nr_bytes = SSL_write(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2035 if (nr_bytes <= 0) { in php_openssl_sockop_io()
2038 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); in php_openssl_sockop_io()
2039 retry = handle_ssl_error(stream, nr_bytes, 0); in php_openssl_sockop_io()
2073 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_sockop_io()
2096 if (nr_bytes > 0) { in php_openssl_sockop_io()
2097 php_stream_notify_progress_increment(PHP_STREAM_CONTEXT(stream), nr_bytes, 0); in php_openssl_sockop_io()
2105 return 0 > nr_bytes ? 0 : nr_bytes; in php_openssl_sockop_io()
2107 size_t nr_bytes = 0; in php_openssl_sockop_io() local
2113 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2115 nr_bytes = php_stream_socket_ops.write(stream, buf, count); in php_openssl_sockop_io()
2118 return nr_bytes; in php_openssl_sockop_io()