]> granicus.if.org Git - php/commitdiff
Fix bug #71536 Access Violation crashes php-cgi.exe
authorAnatol Belski <ab@php.net>
Sun, 28 Feb 2016 10:01:00 +0000 (11:01 +0100)
committerAnatol Belski <ab@php.net>
Sun, 28 Feb 2016 10:02:01 +0000 (11:02 +0100)
ext/libxml/libxml.c

index 5b7aca91d8be20c1c81d67439dd37e773eac5224..24812449eee3e4be9c7527daa23a46406cd8b1a9 100644 (file)
@@ -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);
 }