Skip to content

Commit 4593fe5

Browse files
committed
fix close curl handle
1 parent 8883d52 commit 4593fe5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Curl.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ public function getHandle()
157157

158158
public function __destruct()
159159
{
160-
curl_close($this->handle);
160+
if ($this->handle !== null) {
161+
curl_close($this->handle);
162+
}
161163
}
162164
}

0 commit comments

Comments
 (0)