php-doc-en/appendices/migration81/constants.xml
Juliette 5530a3afb4
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:
* f67986a921/UPGRADING (L220-L229)
* https://github.com/php/php-src/pull/6612
* 3dad63b5b2
* https://github.com/php/php-src/pull/7194
* b11785c5e4

* 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:
* f67986a921/UPGRADING (L245-L247)
* https://github.com/php/php-src/pull/7026
* 81f6d36c90 (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:
* 3a71fcf5ca/UPGRADING (L568-L571)
* https://github.com/php/php-src/pull/7348
* eb6c9eb936

* 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
* https://github.com/php/php-src/pull/6608
* ebca8deaaf

* PHP 8.1 | MigrationGuide/New constants: add missing constants [4]

Refs:
* https://wiki.php.net/rfc/readonly_properties_v2
* https://github.com/php/php-src/pull/7089
* 6780aaa532

* 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:
* https://github.com/php/php-src/pull/6868
* f7f1f7fce2 (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:
* https://github.com/php/php-src/pull/6922
* 9b794f8e5e (diff-3fe4027560fd299248af1dc1efe04287cc2b6418e8f01755c05c9db64b668b1eR368-R381)

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

Closes GH-1449.
2022-03-11 10:57:07 +01:00

165 lines
4.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<sect1 xml:id="migration81.constants" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>New Global Constants</title>
<sect2 xml:id="migration81.constants.curl">
<title>cURL</title>
<itemizedlist>
<listitem>
<simpara><constant>CURLOPT_DOH_URL</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_ISSUERCERT_BLOB</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_PROXY_ISSUERCERT</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_PROXY_ISSUERCERT_BLOB</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_PROXY_SSLCERT_BLOB</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_PROXY_SSLKEY_BLOB</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_SSLCERT_BLOB</constant></simpara>
</listitem>
<listitem>
<simpara><constant>CURLOPT_SSLKEY_BLOB</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.gd">
<title>GD</title>
<itemizedlist>
<listitem>
<simpara><constant>IMG_AVIF</constant></simpara>
</listitem>
<listitem>
<simpara><constant>IMG_WEBP_LOSSLESS</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.mysqli">
<title>MySQLi</title>
<itemizedlist>
<listitem>
<simpara><constant>MYSQLI_REFRESH_REPLICA</constant></simpara>
<para>
This constant has been added as a replacement for
<constant>MYSQLI_REFRESH_SLAVE</constant>,
in line with an upstream change in MySQL.
The old constant is still available for backwards-compatibility reasons,
but may be deprecated/removed in the future.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.posix">
<title>POSIX</title>
<itemizedlist>
<listitem>
<simpara><constant>POSIX_RLIMIT_KQUEUES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>POSIX_RLIMIT_NPTS</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.sockets">
<title>Sockets</title>
<para>
The following socket options are now defined if they are supported:
</para>
<itemizedlist>
<listitem>
<simpara><constant>SO_ACCEPTFILTER</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SO_DONTTRUNC</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SO_WANTMORE</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SO_MARK</constant></simpara>
</listitem>
<listitem>
<simpara><constant>TCP_DEFER_ACCEPT</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.sodium">
<title>Sodium</title>
<itemizedlist>
<listitem>
<simpara><constant>SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES</constant></simpara>
</listitem>
<listitem>
<simpara><constant>SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
<sect2 xml:id="migration81.constants.tokenizer">
<title>Tokenizer</title>
<itemizedlist>
<listitem>
<simpara><constant>T_READONLY</constant></simpara>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->