From e5c5055734002aad4b674591d74d488a0e53dbf1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 21 Jun 2026 17:47:16 +0200 Subject: [PATCH] PHP 8.1 + 8.2 polyfills: update the rulesets / sync with v1.38.1 Two Curl constants, introduced in PHP 8.1 and 8.2, are now polyfilled via the Symfony polyfills as per v 1.38.1. Ref: * symfony/polyfill 617 * https://github.com/symfony/polyfill/commit/b8eb47343cdcd6b3c4eee64f55c20ca0c41780ee --- PHPCompatibilitySymfonyPolyfillPHP81/ruleset.xml | 1 + PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml | 1 + Test/SymfonyPolyfillPHP81Test.php | 2 ++ Test/SymfonyPolyfillPHP82Test.php | 2 ++ 4 files changed, 6 insertions(+) diff --git a/PHPCompatibilitySymfonyPolyfillPHP81/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP81/ruleset.xml index ed215bc..e68f73c 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP81/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP81/ruleset.xml @@ -5,6 +5,7 @@ + diff --git a/PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml index 09d3626..cff6206 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml @@ -5,6 +5,7 @@ + diff --git a/Test/SymfonyPolyfillPHP81Test.php b/Test/SymfonyPolyfillPHP81Test.php index 3717582..3e6e882 100644 --- a/Test/SymfonyPolyfillPHP81Test.php +++ b/Test/SymfonyPolyfillPHP81Test.php @@ -12,3 +12,5 @@ class Foo extends ReturnTypeWillChange {} $file = new CURLStringFile(); + +echo CURLOPT_ISSUERCERT_BLOB; diff --git a/Test/SymfonyPolyfillPHP82Test.php b/Test/SymfonyPolyfillPHP82Test.php index ab4d8ca..8230134 100644 --- a/Test/SymfonyPolyfillPHP82Test.php +++ b/Test/SymfonyPolyfillPHP82Test.php @@ -36,3 +36,5 @@ function hasSensitiveData( string $password ) {} */ + +echo CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256;