Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

curl_error must be called before curl_close#150

Open
MAIKS1900 wants to merge 1 commit intoorhanerday:mainfrom
MAIKS1900:fix_curl_error_after_curl_close
Open

curl_error must be called before curl_close#150
MAIKS1900 wants to merge 1 commit intoorhanerday:mainfrom
MAIKS1900:fix_curl_error_after_curl_close

Conversation

@MAIKS1900
Copy link

Tom-CDA, JulianSchoenbaechler, and EfrosIonelu reacted with thumbs up emoji
@MAIKS1900MAIKS1900 changed the titlecurl_close must be called before curl_closecurl_error must be called before curl_closeAug 7, 2024
@EfrosIonelu
Copy link

EfrosIonelu commentedNov 8, 2024
edited
Loading

...        $curl_error = curl_error($curl);        $info = curl_getinfo($curl);        $this->curlInfo = $info;        $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);        curl_close($curl);        if (!$response) {            // Debugging output            $debugMessage = "cURL error: " . $curl_error . PHP_EOL .                "HTTP code: " . $httpCode . PHP_EOL .                "Request URL: " . $url . PHP_EOL .                "cURL info: " . print_r($info, true);            throw new Exception($debugMessage);        }

---@MAIKS1900

Copy link

@riversideriverside left a comment

Choose a reason for hiding this comment

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

It works!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@riversideriversideriverside approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@MAIKS1900@EfrosIonelu@riverside

Comments


[8]ページ先頭

©2009-2026 Movatter.jp