classes/phing/tasks/ext/WikiPublishTask.php
public function init()
    {
        $this->cookiesFile = tempnam(sys_get_temp_dir(), 'WikiPublish.' . uniqid('', true) . '.cookies');

        $this->curl = curl_init();
        if (false === is_resource($this->curl)) {
            throw new BuildException('Curl init failed (' . $this->apiUrl . ')');
        }

        curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->curl, CURLOPT_COOKIEJAR, $this->cookiesFile);
        curl_setopt($this->curl, CURLOPT_COOKIEFILE, $this->cookiesFile);
    }
public function init()
    {
        $this->cookiesFile = tempnam(sys_get_temp_dir(), 'WikiPublish.' . uniqid('', true) . '.cookies');

        $this->curl = curl_init();
        if (false === is_resource($this->curl)) {
            throw new BuildException('Curl init failed (' . $this->apiUrl . ')');
        }

        curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($this->curl, CURLOPT_COOKIEJAR, $this->cookiesFile);
        curl_setopt($this->curl, CURLOPT_COOKIEFILE, $this->cookiesFile);
    }
public function init ( ) { $ this -> cookiesFile = tempnam ( sys_get_temp_dir ( ) , 'WikiPublish.' . uniqid ( '' , true ) . '.cookies' ) ; $ this -> curl = curl_init ( ) ; if ( false === is_resource ( $ this -> curl ) ) { throw new BuildException ( 'Curl init failed (' . $ this -> apiUrl . ')' ) ; } curl_setopt ( $ this -> curl , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ this -> curl , CURLOPT_COOKIEJAR , $ this -> cookiesFile ) ; curl_setopt ( $ this -> curl , CURLOPT_COOKIEFILE , $ this -> cookiesFile ) ; }
Prepare CURL object

@throws BuildException
Prepare CURL object