function assertExtension($name)
	{
		if (!extension_loaded($name)) {
			$dlext = (strncmp(PHP_OS,'WIN',3) === 0) ? '.dll' : '.so';
			@dl($name . $dlext);
		}
		if (!extension_loaded($name)) {
			return false;
		}
		return true;
	}
function assertExtension($name)
	{
		if (!extension_loaded($name)) {
			$dlext = (strncmp(PHP_OS,'WIN',3) === 0) ? '.dll' : '.so';
			@dl($name . $dlext);
		}
		if (!extension_loaded($name)) {
			return false;
		}
		return true;
	}
function assertExtension ( $ name ) { if ( ! extension_loaded ( $ name ) ) { $ dlext = ( strncmp ( PHP_OS , 'WIN' , 3 ) === 0 ) ? '.dll' : '.so' ; @ dl ( $ name . $ dlext ) ; } if ( ! extension_loaded ( $ name ) ) { return false ; } return true ; }
Load a PHP database extension if it is not loaded already.

@access public

@param $name the base name of the extension (without the .so or
.dll suffix)

@return bool true if the extension was already or successfully
loaded, false if it could not be loaded
Load a PHP database extension if it is not loaded already .