Task #24984
closedCheck for curl availability before using it
100%
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- 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)
Updated by Steffen Gebert almost 14 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.
Updated by Susanne Moog over 13 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
Updated by Mr. Hudson about 13 years ago
Patch set 1 of change I29e4d3b760aaf09f95a2ba6f560fe6562a7d5310 has been pushed to the review server.
It is available at http://review.typo3.org/4956
Updated by Tolleiv Nietsch about 13 years ago
- Status changed from Accepted to Under Review
- Assignee set to Tolleiv Nietsch
Updated by Tolleiv Nietsch about 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 610052096b9a67ce7a19a7d3a15d729b3186224e.