Problem/Motivation
PHP 8.5 deprecates curl_close(). Since PHP 8.0 a cURL handle is a CurlHandle object that is freed automatically when it goes out of scope, so curl_close() has been a no-op and is now formally deprecated (PHP 8.5 deprecations).
HAL calls it in a functional test, which emits a deprecation notice on PHP 8.5:
FILE: tests/src/Functional/page_cache/PageCacheTest.php 132 | WARNING | Function curl_close() is deprecated since PHP 8.5
Steps to reproduce
Run PHPCompatibility against the module on PHP 8.5, or run the test suite under PHP 8.5 and observe the deprecation from PageCacheTest::getHeaders().
Proposed resolution
Remove the curl_close($ch); call at tests/src/Functional/page_cache/PageCacheTest.php line 132. No replacement is needed — the handle is released automatically.
Issue fork hal-3601383
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pfrenssenComment #5
larowlanThanks, I'll look at merging the D12 updates this weekend and cutting a release