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

Add CURLINFO_APPCONNECT_TIME to CurlHelper #381

Merged

Conversation

oranges13
Copy link
Contributor

Fixes #309

Context

Using with the Laravel HTTP client in tests, I was receiving the error ErrorException: Undefined offset: 3145761 and also BadMethodCallException: Not implemented: CURLINFO_APPCONNECT_TIME (3145761)

What has been done

  • Added CURLINFO_APPCONNECT_TIME to CurlHelper $curlInfoList array
  • Added CURLINFO_APPCONNECT_TIME case to switch in CurlHelper::getCurlOptionFromResponse

How to test

  • Use the unmodified release with the laravel HTTP client, see error
  • Use this branch with the laravel HTTP client, error should be resolved

@higidi higidi added Bug Something isn't working Status: Needs review labels Dec 20, 2022
@johguentner
Copy link

People using Guzzle might need this PR (no stress, just a short reminder)
Is there is anything which is missing here for merging? If yes, I can have a deeper look at it.

Thank you!

@JhumanJ
Copy link

JhumanJ commented Feb 19, 2023

Would also love to get this merged, thanks! Happy to help as well if needed 🙏

@higidi higidi merged commit 76bcd98 into php-vcr:master Feb 20, 2023
@higidi higidi self-assigned this Feb 20, 2023
@higidi higidi added this to the 1.6 milestone Feb 20, 2023
@JhumanJ
Copy link

JhumanJ commented Feb 20, 2023

Thank you @higidi <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BadMethodCallException: Not implemented: CURLINFO_APPCONNECT_TIME (3145761)
4 participants