Changeset 352


Ignore:
Timestamp:
04/13/10 09:36:27 (9 years ago)
Author:
sander
Message:

Do not close curl handle before retrieving the error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/validator.php

    r349 r352  
    217217                curl_setopt($curl, CURLOPT_TIMEOUT, 120); 
    218218                $this->response = curl_exec($curl); 
    219                 curl_close($curl); 
    220219 
    221220                // No response, an error or a timeout 
     
    226225                        return; 
    227226                } 
     227                curl_close($curl); 
    228228 
    229229                if (preg_match('/Grand total count of validity errors: (\d+)/', $this->response, $match)) { 
     
    293293                curl_setopt($curl, CURLOPT_TIMEOUT, 120); 
    294294                $this->response = curl_exec($curl); 
    295                 curl_close($curl); 
    296295 
    297296                // No response, an error or a timeout 
     
    302301                        return; 
    303302                } 
     303                curl_close($curl); 
    304304 
    305305                // Parse the results 
Note: See TracChangeset for help on using the changeset viewer.