diff options
author | Anatol Belski <ab@php.net> | 2016-02-28 11:01:00 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-02-28 11:02:01 +0100 |
commit | 93592a9c08c37184ebcb5c1274f240d257e3e3e1 (patch) | |
tree | 9923999dc27e3b1a201afa550fd98decba3875d1 /ext/libxml | |
parent | 8c053d44e473f6b9e65d50ce81029b5849d9e105 (diff) | |
download | php-git-93592a9c08c37184ebcb5c1274f240d257e3e3e1.tar.gz |
Fix bug #71536 Access Violation crashes php-cgi.exe
Diffstat (limited to 'ext/libxml')
-rw-r--r-- | ext/libxml/libxml.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |