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

Fix curl_multi_exec deprecated functionality error #121

Closed
edas11 opened this issue Oct 26, 2022 · 2 comments
Closed

Fix curl_multi_exec deprecated functionality error #121

edas11 opened this issue Oct 26, 2022 · 2 comments

Comments

@edas11
Copy link

edas11 commented Oct 26, 2022

Describe the bug
When calling \Snowplow\Tracker\Tracker::flushEmitters we get a PHP Fatal error Deprecated Functionality: curl_multi_exec(): Passing null to parameter #2 ($still_running) of type int is deprecated in vendor/snowplow/snowplow-tracker/src/Emitters/CurlEmitter.php on line 173. We call flushEmitters in __destruct method of a custom class which sends some order data.

To Reproduce
Call \Snowplow\Tracker\Tracker::flushEmitters.

Expected behavior
No PHP Fatal errors.

Environment (please complete the following information):

  • PHP 8.1
  • Magento 2.4.5
  • snowplow/snowplow-tracker 0.4.0. But it doesn't look like 0.5.0 has a fix for this.
@mscwilson
Copy link
Contributor

Hi @edas11, really sorry that this issue got missed. We're looking into it now.

@mscwilson mscwilson changed the title curl_multi_exec deprecated functionality error Fix curl_multi_exec deprecated functionality error Dec 21, 2022
@mscwilson
Copy link
Contributor

Hopefully this is fixed with version 0.6.1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants