$curlHandle = curl_init( $this->url );
if ( !curl_setopt_array( $curlHandle, $this->curlOptions ) ) {
+ $this->status->fatal( 'http-internal-error' );
throw new InvalidArgumentException( "Error setting curl options." );
}
return false;
}
- if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) {
- if ( strval( ini_get( 'open_basedir' ) ) !== '' ) {
- $this->logger->debug( "Cannot follow redirects when open_basedir is set\n" );
- return false;
- }
- }
-
return true;
}
}