Skip to content

Commit 3691b6d

Browse files
tpetazzonicmb69
authored andcommitted
Fix #76886: Can't build xmlrpc with expat
We fix it by including "php.h" in the HAVE_LIBEXPAT case.
1 parent 3bc4a63 commit 3691b6d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ PHP NEWS
2525
. Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with
2626
stream_socket_client). (Ville Hukkamäki)
2727

28+
- XMLRPC:
29+
. Fixed bug #76886 (Can't build xmlrpc with expat). (Thomas Petazzoni, cmb)
30+
2831
- Zlib:
2932
. Fixed bug #75273 (php_zlib_inflate_filter() may not update bytes_consumed).
3033
(Martin Burke, cmb)

ext/xml/expat_compat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ PHP_XML_API const XML_Char *XML_ExpatVersion(void);
154154
PHP_XML_API void XML_ParserFree(XML_Parser);
155155

156156
#elif defined(HAVE_LIBEXPAT)
157+
#include "php.h"
157158
#include <expat.h>
158159
#endif /* HAVE_LIBEXPAT */
159160

0 commit comments

Comments
 (0)