Browse Source

fix bugs #34743 & #34118 (fseek/fread unicode related problems in HEAD)

patch by Alex
migration/RELEASE_1_0_0
Antony Dovgal 21 years ago
parent
commit
6f4fe0e7ff
  1. 2
      main/streams/streams.c

2
main/streams/streams.c

@ -855,6 +855,8 @@ PHPAPI void *_php_stream_u_read(php_stream *stream, void *buf, int32_t *pnum_byt
*pnum_chars = num_chars;
*pis_unicode = is_unicode;
stream->position += num_bytes;
if (num_chars == 0 && grow_mode) {
efree(buf);
buf = NULL;

Loading…
Cancel
Save