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

Marcus Krause marcus#exp2009 at t3sec.info
Fri Nov 6 22:37:41 CET 2009


Rupert Germann schrieb:
> Hi,
> 
> this is a SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12455
> 
> Branches: Trunk
> [...]
> Solution:
> attached patch makes openID login work for me under PHP 5.3 (win)
> - check if dl() is available
> - fix the path by using DIRECTORY_SEPARATOR
> - remove the unneeded references
> - add the missing references

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;
}


Marcus.


More information about the TYPO3-team-core mailing list