[TYPO3-core] RFC #12455: OpenID authentication does not work with PHP 5.3

Martin Kutschker masi-no at spam-typo3.org
Fri Nov 6 23:41:36 CET 2009


Marcus Krause schrieb:
> 
> Regarding the dl-check; below is a snippet I'm using to handle loadable
> PHP extensions. This is probably the best solution that covers any
> possible and specific setup (e.g dl() does not work in safe mode).
> 
> 
> 
> protected function isCurlAvailable() {
> 	$isAvailable = TRUE;
> 	if (!extension_loaded('curl')) {
> 		if (!((bool)ini_get('enable_dl')
> 			&& !(bool)ini_get('safe_mode')
> 			&& function_exists('dl')
> 			&& dl('curl.so'))) {
> 			$isAvailable = FALSE;
> 		}
> 	}
> 	return $isAvailable;
> }

That would be curl.dll on Windows.

Masi


More information about the TYPO3-team-core mailing list