From bc5d18af4db82fd41c35143b90a8667076f06e11 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 11 Mar 2022 03:45:43 +0100 Subject: [PATCH 1/5] 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 * https://github.com/php/php-src/pull/6612 * https://github.com/php/php-src/commit/3dad63b5b25fc27604a38964b3bea885cbfbf1d3 * https://github.com/php/php-src/pull/7194 * https://github.com/php/php-src/commit/b11785c5e48437a0fd0e6935c52c372239838382 --- appendices/migration81/constants.xml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/appendices/migration81/constants.xml b/appendices/migration81/constants.xml index ce5ced091919..47dc4ea61c72 100644 --- a/appendices/migration81/constants.xml +++ b/appendices/migration81/constants.xml @@ -2,6 +2,37 @@ New Global Constants + + cURL + + + + CURLOPT_DOH_URL + + + CURLOPT_ISSUERCERT_BLOB + + + CURLOPT_PROXY_ISSUERCERT + + + CURLOPT_PROXY_ISSUERCERT_BLOB + + + CURLOPT_PROXY_SSLCERT_BLOB + + + CURLOPT_PROXY_SSLKEY_BLOB + + + CURLOPT_SSLCERT_BLOB + + + CURLOPT_SSLKEY_BLOB + + + + MySQLi From 4ddc79233b41139a5fcfc03ea8f30fdb72cf92d0 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 11 Mar 2022 03:48:16 +0100 Subject: [PATCH 2/5] 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 * https://github.com/php/php-src/pull/7026 * https://github.com/php/php-src/commit/81f6d36c90b8626660a6571cdc128265fa00697f#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 * https://github.com/php/php-src/pull/7348 * https://github.com/php/php-src/commit/eb6c9eb936c62a5784874079747290672bd2faa2 --- appendices/migration81/constants.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/appendices/migration81/constants.xml b/appendices/migration81/constants.xml index 47dc4ea61c72..626ebb25b5d8 100644 --- a/appendices/migration81/constants.xml +++ b/appendices/migration81/constants.xml @@ -33,6 +33,19 @@ + + GD + + + + IMG_AVIF + + + IMG_WEBP_LOSSLESS + + + + MySQLi From 55878452289dc180f0d442e096207aaf8941e75c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 11 Mar 2022 03:57:56 +0100 Subject: [PATCH 3/5] 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 * https://github.com/php/php-src/commit/ebca8deaaf3d7518bfe2fb135b331d9901d9134d --- appendices/migration81/constants.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/appendices/migration81/constants.xml b/appendices/migration81/constants.xml index 626ebb25b5d8..90c17938a5a1 100644 --- a/appendices/migration81/constants.xml +++ b/appendices/migration81/constants.xml @@ -63,6 +63,19 @@ + + POSIX + + + + POSIX_RLIMIT_KQUEUES + + + POSIX_RLIMIT_NPTS + + + + Sockets From f2e2440e240840c98732306813199584fa920a8a Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 11 Mar 2022 04:02:33 +0100 Subject: [PATCH 4/5] 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 * https://github.com/php/php-src/commit/6780aaa53266a19c4d0116329c163a8fe65b5413 --- appendices/migration81/constants.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appendices/migration81/constants.xml b/appendices/migration81/constants.xml index 90c17938a5a1..debb714ffb58 100644 --- a/appendices/migration81/constants.xml +++ b/appendices/migration81/constants.xml @@ -101,6 +101,16 @@ + + Tokenizer + + + + T_READONLY + + + +