Back to SocketTransport class

Method isSupported

public static bool
isSupported
()
Method to check if http transport socket available for use
Returns
  • bool True if available else false
Since
  • 3.0.0

Method isSupported - Source code

/**
 * Method to check if http transport socket available for use
 *
 * @return  boolean   True if available else false
 *
 * @since   3.0.0
 */
public static function isSupported()
{
    return \function_exists('fsockopen') && \is_callable('fsockopen') && !Factory::getApplication()->get('proxy_enable');
}