summaryrefslogtreecommitdiffstats
path: root/xmldiff-php8.patch
diff options
context:
space:
mode:
Diffstat (limited to 'xmldiff-php8.patch')
-rw-r--r--xmldiff-php8.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/xmldiff-php8.patch b/xmldiff-php8.patch
new file mode 100644
index 0000000..0d9cabb
--- /dev/null
+++ b/xmldiff-php8.patch
@@ -0,0 +1,43 @@
+Index: php_xmldiff.h
+===================================================================
+--- php_xmldiff.h (révision 350541)
++++ php_xmldiff.h (copie de travail)
+@@ -147,6 +147,14 @@
+ examples in any other php module directory.
+ */
+
++#ifndef TSRMLS_DC
++#define TSRMLS_D void
++#define TSRMLS_DC
++#define TSRMLS_C
++#define TSRMLS_CC
++#define TSRMLS_FETCH()
++#endif
++
+ #ifdef ZTS
+ #define XMLDIFF_G(v) TSRMG(xmldiff_globals_id, zend_xmldiff_globals *, v)
+ #else
+Index: xmldiff.cpp
+===================================================================
+--- xmldiff.cpp (révision 350541)
++++ xmldiff.cpp (copie de travail)
+@@ -62,6 +62,10 @@
+ /* }}} */
+
+ /* {{{ arginfo */
++ZEND_BEGIN_ARG_INFO_EX(XMLDiff_construct, 0, 0, 0)
++ ZEND_ARG_INFO(0, nsurl)
++ZEND_END_ARG_INFO()
++
+ ZEND_BEGIN_ARG_INFO_EX(XMLDiff_diff, 0, 0, 2)
+ ZEND_ARG_INFO(0, from)
+ ZEND_ARG_INFO(0, to)
+@@ -75,7 +79,7 @@
+
+ /* {{{ xmldiff_methods[] */
+ const zend_function_entry XMLDiffBase_methods[] = {
+- PHP_ME(XMLDiffBase, __construct, NULL, ZEND_ACC_PUBLIC)
++ PHP_ME(XMLDiffBase, __construct, XMLDiff_construct, ZEND_ACC_PUBLIC)
+ PHP_ME(XMLDiffBase, diff, XMLDiff_diff, ZEND_ACC_PUBLIC | ZEND_ACC_ABSTRACT)
+ PHP_ME(XMLDiffBase, merge, XMLDiff_merge, ZEND_ACC_PUBLIC | ZEND_ACC_ABSTRACT)
+ PHP_FE_END