Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 curl Object Fixes #70

Merged
merged 7 commits into from
Dec 22, 2020
Merged

PHP 8 curl Object Fixes #70

merged 7 commits into from
Dec 22, 2020

Conversation

kneitinger
Copy link
Contributor

@kneitinger kneitinger commented Dec 21, 2020

Refactors all curl resource checks to account for the fact that in PHP 8, it is an object.

The necessary changes are nicely summarized here. As you can see, API compatibility was very well maintained by the upstream code in PHP, but also somewhat surprisingly, in C as well.

Unit tests (with valgrind) pass with no issues, and small manual curl test program is correctly instrumented.

Fixes #42
Fixes #51

agent/php_curl.c Outdated Show resolved Hide resolved
Copy link
Contributor

@Fahmy-Mohammed Fahmy-Mohammed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think it's ready for a squash & merge

@kneitinger kneitinger merged commit 7bb8c5e into newrelic:main Dec 22, 2020
@kneitinger kneitinger deleted the php8_curl_object_fixes branch December 22, 2020 20:53
joshuabenuck pushed a commit to joshuabenuck/newrelic-php-agent that referenced this pull request Feb 16, 2021
* Wrap curl fn wrapper arg parsing in PHP8-aware conditionals

* Make check_curl_handle macro PHP8 compliant

* Abstract curl_handle validity in function that accounts for pre and post PHP8 format
joshuabenuck pushed a commit that referenced this pull request Feb 16, 2021
* Wrap curl fn wrapper arg parsing in PHP8-aware conditionals

* Make check_curl_handle macro PHP8 compliant

* Abstract curl_handle validity in function that accounts for pre and post PHP8 format
joshuabenuck pushed a commit that referenced this pull request Apr 20, 2021
* Wrap curl fn wrapper arg parsing in PHP8-aware conditionals

* Make check_curl_handle macro PHP8 compliant

* Abstract curl_handle validity in function that accounts for pre and post PHP8 format
mfulb pushed a commit to mfulb/newrelic-php-agent that referenced this pull request Sep 28, 2022
* Wrap curl fn wrapper arg parsing in PHP8-aware conditionals

* Make check_curl_handle macro PHP8 compliant

* Abstract curl_handle validity in function that accounts for pre and post PHP8 format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PHP 8] Internals Unit Test Updates PHP 8 - Curl API changes
3 participants