Skip to content

Commit

Permalink
Fix DOM_RET_OBJ calls for 8.4 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored Nov 27, 2024
1 parent da62bde commit 6f39eda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php_xmldiff.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ php_xmldiff_do_diff_memory(const char *from, size_t from_len, const char *to, si
PHP_XMLDIFF_API xmlChar *
php_xmldiff_do_merge_memory(const char *src, size_t src_len, const char *diff, size_t diff_len, struct ze_xmldiff_obj *zxo TSRMLS_DC);

#if PHP_MAJOR_VERSION >= 7 || PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 3
#if PHP_MAJOR_VERSION > 8 || PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION > 3
# define XMLDIFF_DOM_RET_OBJ(obj, ret, domobject) DOM_RET_OBJ(obj, domobject)
#elif PHP_MAJOR_VERSION >= 7 || PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 3
# define XMLDIFF_DOM_RET_OBJ DOM_RET_OBJ
#elif PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION > 6
# define XMLDIFF_DOM_RET_OBJ DOM_RET_OBJ_EX
Expand Down

0 comments on commit 6f39eda

Please sign in to comment.