php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch libxml-enable-entity-loader-in-rinit.patch for FPM related Bug #70011

Patch version 2015-07-07 14:55 UTC

Return to Bug #70011 | Download this patch
Patch Revisions:

Developer: manuel-php@mausz.at

--- ext/libxml/libxml.c	2015-06-10 09:42:27.000000000 +0200
+++ ext/libxml/libxml.c	2015-07-07 16:18:55.356839310 +0200
@@ -873,13 +873,14 @@
 		xmlSetGenericErrorFunc(NULL, php_libxml_error_handler);
 		xmlParserInputBufferCreateFilenameDefault(php_libxml_input_buffer_create_filename);
 		xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
-
-		/* Enable the entity loader by default. This ensure that
-		 * other threads/requests that might have disable the loader
-		 * do not affect the current request.
-		 */
-		LIBXML(entity_loader_disabled) = 0;
 	}
+
+	/* Enable the entity loader by default. This ensure that
+	 * other threads/requests that might have disable the loader
+	 * do not affect the current request.
+	 */
+	LIBXML(entity_loader_disabled) = 0;
+
 	return SUCCESS;
 }
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC