/** * Pause and unpause a connection * @see http://php.net/manual/en/function.curl-pause.php Official PHP documentation for curl_pause() * @param int $bitmask One of the **CURLPAUSE_\*** constants * @return int Returns an error code (**CURLE_OK** for no error) */ public function pause($bitmask) { return curl_pause($this->_ch, $bitmask); }
/** * Pause and unpause a connection * * @author Art <*****@*****.**> * * @param int $bitmask One of CURLPAUSE_* constants. * * @return int An error code (CURLE_OK for no error). * @link http://php.net/manual/en/function.curl-pause.php */ function pause($bitmask) { Log::debug('Changed the Curl pause state'); return curl_pause($this->ch, $bitmask); }
/** * @param int $bitmask * @return int */ public function pause($bitmask) { return curl_pause($this->handle, $bitmask); }
public function pause($bitmask = 0) { if (!isPhpVersion('5.5.0')) { die(Error::message('Error', 'invalidVersion', array('%' => 'curl_pause', '#' => '5.5.0'))); } if (!empty($this->init)) { return curl_pause($this->init, $bitmask); } }
public function pause(int $bitmask = 0) : int { if (!empty($this->init)) { return curl_pause($this->init, $bitmask); } return false; }
public function pause($bitmask) { curl_pause($this->ch, $bitmask); return $this; }
/** * @param $bit_mask * * @return $this */ public function pause($bit_mask) { function_exists('curl_pause') and $this->error_code = curl_pause($this->_curl_handle, $bit_mask); return $this; }
public function pause($bitmask) { if (version_compare(PHP_VERSION, '5.5.0') >= 0) { return curl_pause($this->ch, $bitmask); } throw new Exception\FeatureUnavailableException('curl_escape() is not supported prior to PHP 5.5.0'); }
/** * Pause and unpause a connection * * @param int $bitmask One of CURLPAUSE_* constants. * @return self */ public final function curlPause($bitmask) { curl_pause($this->curl_handle, $bitmask); return $this; }
public function unpause() { curl_pause($this->CurlObject, 'CURLPAUSE_CONT'); return 1; }