Project

General

Profile

Actions

Task #24984

closed

Check for curl availability before using it

Added by Markus Schmitz almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-02-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

curl is used when activated in the install tool. The core should check if curl is available before using it (probably as early as in the install tool, when the corresponding option is set).

Original report:

Config:
[SYS][curlUse] = 1
[SYS][curlProxyServer] = ca-bn1.bn.detemobil.de:3128

( ! ) Fatal error: Call to undefined function curl_init() in H:\Data\Exclude\Tools\xampp\xampp-1.7.4\xampp\htdocs\typo3-4.5LTS\t3lib\class.t3lib_div.php on line 2952

Call Stack
  1. Time Memory Function Location
    1 0.0009 342744 {main}( ) ..\mod.php:0
    2 0.3265 12940384 require( 'H:\Data\Exclude\Tools\xampp\xampp-1.7.4\xampp\htdocs\typo3-4.5LTS\typo3\sysext\em\classes\index.php' ) ..\mod.php:51
    3 0.5257 16302808 SC_mod_tools_em_index->main( ) ..\index.php:2572
    4 0.5258 16303520 tx_em_Translations->translationHandling( ) ..\index.php:502
    5 0.5382 16656832 SC_mod_tools_em_index->getMirrorURL( ) ..\class.tx_em_translations.php:183
    6 0.5382 16656912 SC_mod_tools_em_index->fetchMetaData( ) ..\index.php:1194
    7 0.5398 16657432 t3lib_div::getURL( ) ..\index.php:1109
    (issue imported from #M17517)
Actions

Also available in: Atom PDF