]> granicus.if.org Git - php/commitdiff
Fix #76886: Can't build xmlrpc with expat
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 5 Apr 2018 20:50:00 +0000 (22:50 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 15 Sep 2018 11:21:53 +0000 (13:21 +0200)
We fix it by including "php.h" in the HAVE_LIBEXPAT case.

NEWS
ext/xml/expat_compat.h

diff --git a/NEWS b/NEWS
index 952182f2cf4747188b7c941caf1bc7c2ce127fbc..fa5b68f596a2e21148254f0a4d23364108261dbe 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,9 @@ PHP                                                                        NEWS
   . Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with 
     stream_socket_client). (Ville Hukkamäki)
 
+- XMLRPC:
+  . Fixed bug #76886 (Can't build xmlrpc with expat). (Thomas Petazzoni, cmb)
+
 - Zlib:
   . Fixed bug #75273 (php_zlib_inflate_filter() may not update bytes_consumed).
     (Martin Burke, cmb)
index ed621ab53d81654ccde38657fe04afee8d61a03d..29fe48a7ddbda3263dbc5a82621c4fa28490216d 100644 (file)
@@ -154,6 +154,7 @@ PHP_XML_API const XML_Char *XML_ExpatVersion(void);
 PHP_XML_API void XML_ParserFree(XML_Parser);
 
 #elif defined(HAVE_LIBEXPAT)
+#include "php.h"
 #include <expat.h>
 #endif /* HAVE_LIBEXPAT */