Skip to content

Destructing objects after using callback functions

Compare
Choose a tag to compare
@g105b g105b released this 10 Jun 14:53
· 29 commits to master since this release
0981105

Certain Curl callback functions such as the Header, Progress, Read and Write functions can cause the underlying Curl resource to destruct. This is by the design of Curl, but if this happens while using the OOP wrapper that this repository provides, an error is raised when the object destructors fire, because the underlying resource is no longer present.