示例#1
0
文件: Curl.php 项目: Remo/communique
 /**
  * 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);
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
文件: Curl55.php 项目: vitalsaude/api
 /**
  * @param int $bitmask
  * @return int
  */
 public function pause($bitmask)
 {
     return curl_pause($this->handle, $bitmask);
 }
示例#4
0
 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);
     }
 }
示例#5
0
 public function pause(int $bitmask = 0) : int
 {
     if (!empty($this->init)) {
         return curl_pause($this->init, $bitmask);
     }
     return false;
 }
示例#6
0
 public function pause($bitmask)
 {
     curl_pause($this->ch, $bitmask);
     return $this;
 }
示例#7
0
 /**
  * @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;
 }
示例#8
0
文件: Oocurl.php 项目: antnee/oocurl
 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');
 }
示例#9
0
文件: curl.php 项目: KVSun/core_api
 /**
  * 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;
 }
示例#10
0
文件: Curl.php 项目: negati-ve/prote
 public function unpause()
 {
     curl_pause($this->CurlObject, 'CURLPAUSE_CONT');
     return 1;
 }