Skip to content

Commit a4ec211

Browse files
author
Sascha Schumann
committed
Add a few notes
1 parent c429805 commit a4ec211

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ DUMP_SOCK_STATE("check for EOF", sock);
800800
}
801801

802802
#if HAVE_OPENSSL_EXT
803+
/* XXX: Where is the complex OpenSSL error handling? */
803804
if (sock->ssl_active)
804805
nr_bytes = SSL_read(sock->ssl_handle, buf, count);
805806
else

main/streams.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,10 @@ PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRML
708708
break;
709709
}
710710
} else {
711+
/* XXX: Should be fine to always read chunk_size */
711712
size_t toread = maxlen - 1;
712713
if (toread > stream->chunk_size)
713714
toread = stream->chunk_size;
714-
else if (toread < stream->chunk_size)
715-
stream->chunk_size = toread;
716715

717716
/* XXX: Should not the loop end, if the stream op fails? */
718717
php_stream_fill_read_buffer(stream, toread TSRMLS_CC);

0 commit comments

Comments
 (0)