Skip to content

Commit

Permalink
Fix bug #71536 Access Violation crashes php-cgi.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Feb 28, 2016
1 parent 8c053d4 commit 93592a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/libxml/libxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ static int php_libxml_streams_IO_read(void *context, char *buffer, int len)

static int php_libxml_streams_IO_write(void *context, const char *buffer, int len)
{
if (CG(unclean_shutdown)) {
return -1;
}
return php_stream_write((php_stream*)context, buffer, len);
}

Expand Down

0 comments on commit 93592a9

Please sign in to comment.