Skip to content

Commit 5530a3a

Browse files
authored
PHP 8.1 | MigrationGuide/New constants: add missing constants
* PHP 8.1 | MigrationGuide/New constants: add missing constants [1] > * Added CURLOPT_DOH_URL option > * Added certificate blob options when for libcurl >= 7.71.0: > > CURLOPT_ISSUERCERT_BLOB > CURLOPT_PROXY_ISSUERCERT > CURLOPT_PROXY_ISSUERCERT_BLOB > CURLOPT_PROXY_SSLCERT_BLOB > CURLOPT_PROXY_SSLKEY_BLOB > CURLOPT_SSLCERT_BLOB > CURLOPT_SSLKEY_BLOB Refs: * https://github.com/php/php-src/blob/f67986a9218f4889d9352a87c29337a5b6eaa4bd/UPGRADING#L220-L229 * php/php-src#6612 * php/php-src@3dad63b * php/php-src#7194 * php/php-src@b11785c * PHP 8.1 | MigrationGuide/New constants: add missing constants [2] > GD: > * Avif support is now available through the `imagecreatefromavif()` and > `imageavif()` functions, if libgd has been built with avif support. While not mentioned in the changelog entry, the commit to PHP does contain a new constant declaration... Refs: * https://github.com/php/php-src/blob/f67986a9218f4889d9352a87c29337a5b6eaa4bd/UPGRADING#L245-L247 * php/php-src#7026 * php/php-src@81f6d36#diff-00d1efef2247b288c86a6c3bfefac111a4774fbc5453fdc02dcf36c4a23da283R373 > GD: > * `imagewebp()` can do lossless WebP encoding by passing `IMG_WEBP_LOSSLESS` as > quality. This constant is only defined, if a libgd is used which supports > lossless WebP encoding. Refs: * https://github.com/php/php-src/blob/3a71fcf5caf042a4ce8a586a6b554fd70432e1e2/UPGRADING#L568-L571 * php/php-src#7348 * php/php-src@eb6c9eb * PHP 8.1 | MigrationGuide/New constants: add missing constants [3] > Added `POSIX_RLIMIT_KQUEUES` and `POSIX_RLIMIT_NPTS`. These rlimits are only available on FreeBSD. Refs: * https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.posix * php/php-src#6608 * php/php-src@ebca8de * PHP 8.1 | MigrationGuide/New constants: add missing constants [4] Refs: * https://wiki.php.net/rfc/readonly_properties_v2 * php/php-src#7089 * php/php-src@6780aaa * PHP 8.1 | MigrationGuide/New constants: add missing constants [5] While not mentioned anywhere at all, the commit to PHP itself adding support for the Sodium xchacha* functions, does declare a couple of new constants as well... Refs: * php/php-src#6868 * php/php-src@f7f1f7f#diff-3fe4027560fd299248af1dc1efe04287cc2b6418e8f01755c05c9db64b668b1eR352-R357 While not mentioned anywhere at all, the commit to PHP itself adding support for the Sodium ristretto255* functions, also declares a number of new constants as well... Refs: * php/php-src#6922 * php/php-src@9b794f8#diff-3fe4027560fd299248af1dc1efe04287cc2b6418e8f01755c05c9db64b668b1eR368-R381 Co-authored-by: jrfnl <jrfnl@users.noreply.github.com> Closes GH-1449.
1 parent 7d6c873 commit 5530a3a

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

appendices/migration81/constants.xml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22
<sect1 xml:id="migration81.constants" xmlns:xlink="http://www.w3.org/1999/xlink">
33
<title>New Global Constants</title>
44

5+
<sect2 xml:id="migration81.constants.curl">
6+
<title>cURL</title>
7+
8+
<itemizedlist>
9+
<listitem>
10+
<simpara><constant>CURLOPT_DOH_URL</constant></simpara>
11+
</listitem>
12+
<listitem>
13+
<simpara><constant>CURLOPT_ISSUERCERT_BLOB</constant></simpara>
14+
</listitem>
15+
<listitem>
16+
<simpara><constant>CURLOPT_PROXY_ISSUERCERT</constant></simpara>
17+
</listitem>
18+
<listitem>
19+
<simpara><constant>CURLOPT_PROXY_ISSUERCERT_BLOB</constant></simpara>
20+
</listitem>
21+
<listitem>
22+
<simpara><constant>CURLOPT_PROXY_SSLCERT_BLOB</constant></simpara>
23+
</listitem>
24+
<listitem>
25+
<simpara><constant>CURLOPT_PROXY_SSLKEY_BLOB</constant></simpara>
26+
</listitem>
27+
<listitem>
28+
<simpara><constant>CURLOPT_SSLCERT_BLOB</constant></simpara>
29+
</listitem>
30+
<listitem>
31+
<simpara><constant>CURLOPT_SSLKEY_BLOB</constant></simpara>
32+
</listitem>
33+
</itemizedlist>
34+
</sect2>
35+
36+
<sect2 xml:id="migration81.constants.gd">
37+
<title>GD</title>
38+
39+
<itemizedlist>
40+
<listitem>
41+
<simpara><constant>IMG_AVIF</constant></simpara>
42+
</listitem>
43+
<listitem>
44+
<simpara><constant>IMG_WEBP_LOSSLESS</constant></simpara>
45+
</listitem>
46+
</itemizedlist>
47+
</sect2>
48+
549
<sect2 xml:id="migration81.constants.mysqli">
650
<title>MySQLi</title>
751

@@ -19,6 +63,19 @@
1963
</itemizedlist>
2064
</sect2>
2165

66+
<sect2 xml:id="migration81.constants.posix">
67+
<title>POSIX</title>
68+
69+
<itemizedlist>
70+
<listitem>
71+
<simpara><constant>POSIX_RLIMIT_KQUEUES</constant></simpara>
72+
</listitem>
73+
<listitem>
74+
<simpara><constant>POSIX_RLIMIT_NPTS</constant></simpara>
75+
</listitem>
76+
</itemizedlist>
77+
</sect2>
78+
2279
<sect2 xml:id="migration81.constants.sockets">
2380
<title>Sockets</title>
2481

@@ -44,6 +101,47 @@
44101
</itemizedlist>
45102
</sect2>
46103

104+
<sect2 xml:id="migration81.constants.sodium">
105+
<title>Sodium</title>
106+
107+
<itemizedlist>
108+
<listitem>
109+
<simpara><constant>SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES</constant></simpara>
110+
</listitem>
111+
<listitem>
112+
<simpara><constant>SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES</constant></simpara>
113+
</listitem>
114+
<listitem>
115+
<simpara><constant>SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES</constant></simpara>
116+
</listitem>
117+
<listitem>
118+
<simpara><constant>SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES</constant></simpara>
119+
</listitem>
120+
<listitem>
121+
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES</constant></simpara>
122+
</listitem>
123+
<listitem>
124+
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES</constant></simpara>
125+
</listitem>
126+
<listitem>
127+
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES</constant></simpara>
128+
</listitem>
129+
<listitem>
130+
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES</constant></simpara>
131+
</listitem>
132+
</itemizedlist>
133+
</sect2>
134+
135+
<sect2 xml:id="migration81.constants.tokenizer">
136+
<title>Tokenizer</title>
137+
138+
<itemizedlist>
139+
<listitem>
140+
<simpara><constant>T_READONLY</constant></simpara>
141+
</listitem>
142+
</itemizedlist>
143+
</sect2>
144+
47145
</sect1>
48146
<!-- Keep this comment at the end of the file
49147
Local variables:

0 commit comments

Comments
 (0)