When using SimplePie 1.2, I get a lot of Deprecated: Assigning the return value of new by reference is deprecated error messages. The root of these message is SimplePie and its PHP4 support, see https://github.com/rmccue/SimplePie/issues/95.

But Drupal 7 requires PHP 5.3 so unless we wait for SimplePie 1.3, there is currently no way to use Feeds+SimplePie in Drupal 7.

Comments

pbuyle’s picture

As a workaround, the attached patch allows Feeds to ignore Deprecated warnings while loading SimplePie.

pbuyle’s picture

Status: Active » Needs review
pbuyle’s picture

The correct link for the corresponding SimplePie issue is https://github.com/simplepie/simplepie/issues/127

Niklas Fiekas’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.6 KB

These warnings prevent (easy) automated testing of Media Feeds #1181298: Add support for FeedEnclosure.
The patch applies and solves the problem. It also has a clean coding style and doesn't introduce any new warnings in Coder.

The attached patch is the same with a space added:
//_Restore error reporting level

Thank you, mongolito404.

jief’s picture

Here's a new patch has the following the last commits

pbuyle’s picture

Here is, again, an updated version of the same patch.

febbraro’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.