From: Anatol Belski Date: Sun, 28 Feb 2016 10:01:00 +0000 (+0100) Subject: Fix bug #71536 Access Violation crashes php-cgi.exe X-Git-Tag: php-7.0.5RC1~55^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93592a9c08c37184ebcb5c1274f240d257e3e3e1;p=php Fix bug #71536 Access Violation crashes php-cgi.exe --- diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 5b7aca91d8..24812449ee 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -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); }