summaryrefslogtreecommitdiffstats
path: root/0001-Use-IS_VOID-7.1-instead-of-IS_NULL.patch
blob: 75c511a448e92bc7e7f5037feeeee5fbba17da52 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From d4542bf4278386020f081c6a5ba8c3acfbe2c432 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 15 Jun 2017 08:36:02 +0200
Subject: [PATCH 1/3] Use IS_VOID (7.1+) instead of IS_NULL

---
 serverresponse.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/serverresponse.c b/serverresponse.c
index 5e013a5..2e912f7 100644
--- a/serverresponse.c
+++ b/serverresponse.c
@@ -34,14 +34,14 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(getVersion), 0, 0, IS_STRING, NULL, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setVersion), 0, 1, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setVersion), 0, 0, 1)
     ZEND_ARG_TYPE_INFO(0, version, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(getStatus), 0, 0, IS_LONG, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(getStatus), 0, 0, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setStatus), 0, 1, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setStatus), 0, 0, 1)
     ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
@@ -51,7 +51,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(getHeaders), 0, 0, IS_ARRAY, NULL, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(addSetHeader), 0, 2, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(addSetHeader), 0, 0, 2)
     ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0)
     ZEND_ARG_INFO(0, value)
 ZEND_END_ARG_INFO()
@@ -59,7 +59,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(getCookies), 0, 0, IS_ARRAY, NULL, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setCookie), 0, 1, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setCookie), 0, 0, 1)
     ZEND_ARG_INFO(0, name)
     ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
     ZEND_ARG_TYPE_INFO(0, expires, IS_LONG, 0)
@@ -72,18 +72,18 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_INFO_EX(AI(getContent), 0, 0, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setContent), 0, 1, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setContent), 0, 0, 1)
     ZEND_ARG_INFO(0, content)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setContentJson), 0, 1, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setContentJson), 0, 0, 1)
     ZEND_ARG_INFO(0, content)
     ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
     ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(setContentDownload), 0, 1, IS_NULL, NULL, 0)
-    ZEND_ARG_TYPE_INFO(0, fh, IS_RESOURCE, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(setContentDownload), 0, 0, 2)
+    ZEND_ARG_INFO(0, fh)
     ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
     ZEND_ARG_TYPE_INFO(0, disposition, IS_STRING, 0)
     ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
@@ -93,7 +93,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(date), 0, 1, IS_STRING, NULL, 0)
     ZEND_ARG_INFO(0, date)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(AI(send), 0, 0, IS_NULL, NULL, 0)
+ZEND_BEGIN_ARG_INFO_EX(AI(send), 0, 0, 0)
 ZEND_END_ARG_INFO()
 /* }}} Argument Info */
 
-- 
2.9.4