| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | $api_processor = get_option('e2pdf_debug', '0') && get_option('e2pdf_processor', '0') ? get_option('e2pdf_processor', '0') : '0'; |
| 41 | 41 | if ($api_processor == '2') { |
| 42 | 42 | $api_version = '1.16.19'; |
| 43 | 43 | } else { |
| 44 | - $api_version = '1.32.39'; | |
| 44 | + $api_version = '1.32.52'; | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | $data = [ |
| 48 | 48 | 'api_url' => $this->helper->get_site_url(), |
| @@ -105,9 +105,11 @@ | ||
| 105 | 105 | $curl_errno = curl_errno($ch); |
| 106 | 106 | $curl_error = curl_error($ch); |
| 107 | 107 | $curl_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); |
| 108 | 108 | $curl_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
| 109 | - curl_close($ch); | |
| 109 | + if (PHP_VERSION_ID < 80000) { | |
| 110 | + curl_close($ch); | |
| 111 | + } | |
| 110 | 112 | // phpcs:enable |
| 111 | 113 | |
| 112 | 114 | if ($curl_errno > 0) { |
| 113 | 115 | if ($this->get_api_server() === $this->get_api_server($api_server)) { |