Skip to content

Commit 94cbd5c

Browse files
committed
[PHP 8.3 support](#133) : add [new curl constants from curl > 7.80](php/php-src#10459)
1 parent 720ef0f commit 94cbd5c

File tree

2 files changed

+149
-1
lines changed

2 files changed

+149
-1
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
[
2+
{
3+
"name": "CURLINFO_CAPATH",
4+
"ext_min": "8.3.0beta1",
5+
"php_min": "8.3.0beta1",
6+
"dependencies": [
7+
{
8+
"name": "libcurl",
9+
"constraint": ">=7.84.0"
10+
}
11+
]
12+
},
13+
{
14+
"name": "CURLINFO_CAINFO",
15+
"ext_min": "8.3.0beta1",
16+
"php_min": "8.3.0beta1",
17+
"dependencies": [
18+
{
19+
"name": "libcurl",
20+
"constraint": ">=7.84.0"
21+
}
22+
]
23+
},
24+
{
25+
"name": "CURLOPT_MIME_OPTIONS",
26+
"ext_min": "8.3.0beta1",
27+
"php_min": "8.3.0beta1",
28+
"dependencies": [
29+
{
30+
"name": "libcurl",
31+
"constraint": ">=7.81.0"
32+
}
33+
]
34+
},
35+
{
36+
"name": "CURLMIMEOPT_FORMESCAPE",
37+
"ext_min": "8.3.0beta1",
38+
"php_min": "8.3.0beta1",
39+
"dependencies": [
40+
{
41+
"name": "libcurl",
42+
"constraint": ">=7.81.0"
43+
}
44+
]
45+
},
46+
{
47+
"name": "CURLOPT_WS_OPTIONS",
48+
"ext_min": "8.3.0beta1",
49+
"php_min": "8.3.0beta1",
50+
"dependencies": [
51+
{
52+
"name": "libcurl",
53+
"constraint": ">=7.86.0"
54+
}
55+
]
56+
},
57+
{
58+
"name": "CURLWS_RAW_MODE",
59+
"ext_min": "8.3.0beta1",
60+
"php_min": "8.3.0beta1",
61+
"dependencies": [
62+
{
63+
"name": "libcurl",
64+
"constraint": ">=7.86.0"
65+
}
66+
]
67+
},
68+
{
69+
"name": "CURLOPT_SSH_HOSTKEYFUNCTION",
70+
"ext_min": "8.3.0beta1",
71+
"php_min": "8.3.0beta1",
72+
"dependencies": [
73+
{
74+
"name": "libcurl",
75+
"constraint": ">=7.84.0"
76+
}
77+
]
78+
},
79+
{
80+
"name": "CURLOPT_PROTOCOLS_STR",
81+
"ext_min": "8.3.0beta1",
82+
"php_min": "8.3.0beta1",
83+
"dependencies": [
84+
{
85+
"name": "libcurl",
86+
"constraint": ">=7.85.0"
87+
}
88+
]
89+
},
90+
{
91+
"name": "CURLOPT_REDIR_PROTOCOLS_STR",
92+
"ext_min": "8.3.0beta1",
93+
"php_min": "8.3.0beta1",
94+
"dependencies": [
95+
{
96+
"name": "libcurl",
97+
"constraint": ">=7.85.0"
98+
}
99+
]
100+
},
101+
{
102+
"name": "CURLOPT_CA_CACHE_TIMEOUT",
103+
"ext_min": "8.3.0beta1",
104+
"php_min": "8.3.0beta1",
105+
"dependencies": [
106+
{
107+
"name": "libcurl",
108+
"constraint": ">=7.87.0"
109+
}
110+
]
111+
},
112+
{
113+
"name": "CURLOPT_QUICK_EXIT",
114+
"ext_min": "8.3.0beta1",
115+
"php_min": "8.3.0beta1",
116+
"dependencies": [
117+
{
118+
"name": "libcurl",
119+
"constraint": ">=7.87.0"
120+
}
121+
]
122+
},
123+
{
124+
"name": "CURLKHMATCH_OK",
125+
"ext_min": "8.3.0beta1",
126+
"php_min": "8.3.0beta1"
127+
},
128+
{
129+
"name": "CURLKHMATCH_MISMATCH",
130+
"ext_min": "8.3.0beta1",
131+
"php_min": "8.3.0beta1"
132+
},
133+
{
134+
"name": "CURLKHMATCH_MISSING",
135+
"ext_min": "8.3.0beta1",
136+
"php_min": "8.3.0beta1"
137+
},
138+
{
139+
"name": "CURLKHMATCH_LAST",
140+
"ext_min": "8.3.0beta1",
141+
"php_min": "8.3.0beta1"
142+
}
143+
]

src/Application/Command/Init/InitHandler.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,12 @@ private function majorReleaseDefinitionProvider(): Generator
379379

380380
yield 'curl' => [
381381
'classes' => ['55', '80', '81'],
382-
'constants' => ['40', '51', '52', '53', '54', '55', '56', '70', '73', '81', '82'],
382+
'constants' => [
383+
'40',
384+
'51', '52', '53', '54', '55', '56',
385+
'70', '73',
386+
'81', '82', '83',
387+
],
383388
'functions' => ['40', '50', '51', '55', '71', '82'],
384389
'iniEntries' => ['53'],
385390
'methods' => ['55', '81'],

0 commit comments

Comments
 (0)