Skip to content

Conversation

@J5lx
Copy link
Contributor

@J5lx J5lx commented Aug 14, 2014

When close() was called more than once PHP warnings appeared stating that "XY is not a valid cURL handle resource". This was especially problematic when close() was called manually because it will also always be called from the destructor. From no on we’ll first check whether $this->curl is still a resource to avoid that.

Besides that: great Job!

When close() was called more than once PHP warnings appeared stating that "XY is not a valid cURL handle resource". This was especially problematic when close() was called manually because it will also *always* be called from the destructor. From no on we’ll first check whether $this->curl is still a resource to avoid that.
@J5lx
Copy link
Contributor Author

J5lx commented Aug 14, 2014

BTW: The Travis CI build already failed before due to the same error (see https://travis-ci.org/php-mod/curl/builds/31105922), so that’s not my fault.

amouhzi added a commit that referenced this pull request Aug 14, 2014
Don’t close the cURL handle more than once
@amouhzi amouhzi merged commit 82cac3f into php-mod:master Aug 14, 2014
@amouhzi
Copy link
Member

amouhzi commented Aug 14, 2014

Thank you for the pull request, I know for the failure. A new version (1.1.5) for this merge is released.

@J5lx J5lx deleted the fix-second-close-in-destructor branch August 14, 2014 23:33
@J5lx
Copy link
Contributor Author

J5lx commented Aug 14, 2014

Wow, merged after 11 minutes, that was fast! Thanks!

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