Project

General

Profile

Actions

Task #24984

closed

Check for curl availability before using it

Added by Markus Schmitz about 13 years ago. Updated over 5 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 #1

Updated by Steffen Gebert about 13 years ago

You should install the PHP curl extension ;)

Nevertheless, t3lib_div::getURL should probably check for the functions being available and otherwise throw an Exception.

Actions #2

Updated by Susanne Moog over 12 years ago

  • Tracker changed from Bug to Task
  • Subject changed from Fatal Error in Extension Manager if Curl is used to Check for curl availability before using it
  • Status changed from Needs Feedback to Accepted
  • Target version deleted (0)
  • Complexity set to easy
Actions #3

Updated by Mr. Hudson over 12 years ago

Patch set 1 of change I29e4d3b760aaf09f95a2ba6f560fe6562a7d5310 has been pushed to the review server.
It is available at http://review.typo3.org/4956

Actions #4

Updated by Tolleiv Nietsch over 12 years ago

  • Status changed from Accepted to Under Review
  • Assignee set to Tolleiv Nietsch
Actions #5

Updated by Tolleiv Nietsch over 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF