From 6022f79edaa053fece96c5014f30fb8ee85f06f7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Sep 2020 14:11:46 +0200 Subject: add upstream patch for PHP 8 --- xmldiff-php8.patch | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 xmldiff-php8.patch (limited to 'xmldiff-php8.patch') 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 -- cgit