Conversation
Greptile SummaryThis PR addresses the PHP 8.5 deprecation of
Confidence Score: 5/5This PR is safe to merge; it is a minimal, correct fix with no functional or behavioral changes. The change is two identical, symmetric guard blocks around a deprecated no-op function call. The version boundary is correct, both code paths (error and success) are updated, and the fix is fully consistent with the project's PHP >=7.3 support contract. No P0 or P1 issues were found. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[curl_exec] --> B{result === false?}
B -- Yes --> C[curl_errno / curl_error]
C --> D{PHP_VERSION_ID < 80000?}
D -- Yes PHP 7.x --> E[curl_close]
D -- No PHP 8.0+ --> F[skip curl_close]
E --> G[throw GenericException]
F --> G
B -- No --> H[curl_getinfo status code]
H --> I{PHP_VERSION_ID < 80000?}
I -- Yes PHP 7.x --> J[curl_close]
I -- No PHP 8.0+ --> K[skip curl_close]
J --> L[return result/headers/statusCode]
K --> L
Reviews (1): Last reviewed commit: "PHP 8" | Re-trigger Greptile |
Hi @gjtorikian @sheldonvaughn,
Description
Since PHP8.5 curl_close is deprecated and the call is only useful for PHP 7.
https://www.php.net/manual/en/function.curl-close.php
This prevent the deprecation
It would be great having a patch release with this.
Documentation
Does not require change to the doc