Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 8, 2020

To avoid this, we have to verify the handlers already in
curl_multi_add_handle(), not only in curl_multi_exec().

To avoid this, we have to verify the handlers already in
`curl_multi_add_handle()`, not only in `curl_multi_exec()`.
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

This is fine, but remains fragile. Ideally we'd use FPs independent of the PHP stream here, but I'm not sure if that's possible on Windows (on Linux FP can be duplicated via fileno -> dup -> fdopen).

@cmb69
Copy link
Member Author

cmb69 commented Jan 8, 2020

That should work the same on Windows (the functions should better be prefixed with an underscore there, since the POSIX function names are deprecated). But I think that's better left for master.

@cmb69
Copy link
Member Author

cmb69 commented Jan 8, 2020

Thanks! Applied as 0dda4a8.

@cmb69 cmb69 closed this Jan 8, 2020
@cmb69 cmb69 deleted the cmb/fix-79078 branch January 8, 2020 17:44
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

Successfully merging this pull request may close these issues.

2 participants