com php-src: Fix bug #71536 Access Violation crashes php-cgi.exe: ext/libxml/libxml.c
| From: | Anatol Belski | Date: | Sun, 28 Feb 2016 10:02:01 +0000 |
| Subject: | com php-src: Fix bug #71536 Access Violation crashes php-cgi.exe: ext/libxml/libxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91174@lists.php.net to get a copy of this message | ||
Commit: 93592a9c08c37184ebcb5c1274f240d257e3e3e1
Author: Anatol Belski <ab@php.net> Sun, 28 Feb 2016 11:01:00 +0100
Parents: 8c053d44e473f6b9e65d50ce81029b5849d9e105
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=93592a9c08c37184ebcb5c1274f240d257e3e3e1
Log:
Fix bug #71536 Access Violation crashes php-cgi.exe
Bugs:
https://bugs.php.net/71536
Changed paths:
M ext/libxml/libxml.c
Diff:
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 5b7aca9..2481244 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);
}