0) { $wrappers = array( 'phar' ); if (function_exists('stream_get_wrappers')) { $wrappers = stream_get_wrappers(); } foreach ($wrappers as $wrapper) { if (in_array($wrapper, ['http', 'https', 'file'])) { continue; } if (stripos($file_path, $wrapper . '://') === 0) { return true; } } } return false; } }