summaryrefslogtreecommitdiffstats
path: root/xmldiff-php8.patch
blob: 0d9cabb94ae3173892f373fc036ffadac120693a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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