Skip to content

Commit 474292c

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Sync callback signature with libxml2 2.9.8
2 parents a6e8c73 + a820aab commit 474292c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/dom/dom_iterators.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ struct _notationIterator {
4242
xmlNotation *notation;
4343
};
4444

45-
static void itemHashScanner (void *payload, void *data, xmlChar *name) /* {{{ */
45+
#if LIBXML_VERSION >= 20908
46+
static void itemHashScanner (void *payload, void *data, const xmlChar *name) /* {{{ */
47+
#else
48+
static void itemHashScanner (void *payload, void *data, xmlChar *name)
49+
#endif
4650
{
4751
nodeIterator *priv = (nodeIterator *)data;
4852

0 commit comments

Comments
 (0)