Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

EpiOAuth.php fails on PHP 5.5 #200

@RWAP

Description

@RWAP

On PHP v5.5, you get the error message:
Deprecated: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead in .../EpiOAuth.php on line 270.

There needs to be a check for PHP v5.5 along the lines of:

if (function_exists('curl_file_create')) {
.... Curlfile() class code
} else {
.... Existing code
}

However, what is the correct code to use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions