Attached files

file filename
EX-23.1 - CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM - HERON THERAPEUTICS, INC. /DE/dex231.htm
S-1/A - AMENDMENT NO. 2 TO REGISTRATION STATEMENT ON FORM S-1 - HERON THERAPEUTICS, INC. /DE/ds1a.htm

Exhibit 5.1

LOGO

July 15, 2011

A.P. Pharma, Inc.

123 Saginaw Drive

Redwood City, California 94063

Ladies and Gentlemen:

This opinion letter is furnished to you in connection with your filing of a Registration Statement on Form S-1 (the “Registration Statement”), with the Securities and Exchange Commission under the Securities Act of 1933, as amended, for the registration of up to 69,600,669 shares of Common Stock, $0.01 par value (the “Shares”), of A.P. Pharma, Inc., a Delaware corporation (the “Company”), which Shares are potentially issuable upon conversion of the Company’s Senior Secured Convertible Notes due 2021 (the “Notes”), subject to the limitations described in the Registration Statement.

We have reviewed such documents and made such examination of law as we have deemed appropriate to give the opinions expressed below. We have relied, without independent verification, on certificates of public officials and, as to matters of fact material to the opinions set forth below, on certificates of officers of the Company.

The opinion expressed below is limited to the Delaware General Corporation Law (which includes applicable provisions of the Delaware Constitution and reported judicial decisions interpreting the Delaware General Corporation Law and the Delaware Constitution).

Based on the foregoing, we are of the opinion that upon issuance and delivery of the Shares on conversion of the Notes the Shares will be duly authorized, validly issued, fully paid and non-assessable.

We hereby consent to the inclusion of this opinion as Exhibit 5.1 to the Registration Statement and to the references to our firm under the caption “Legal Matters” in the Registration Statement. In giving our consent, we do not admit that we are in the category of persons whose consent is required under Section 7 of the Securities Act or the rules and regulations thereunder.

Very truly yours,

/s/ Ropes & Gray LLP

Ropes & Gray LLP