In PHP 5.3, searching an item using a string throws the warning:

Deprecated function: Function ereg_replace() is deprecated in _amazon_store_page() (Zeile 536 von /var/www/sites/all/modules/amazon_store/amazon_store.module).

ereg_replace() is deprecated in PHP 5.3 and will be removed from PHP 6.0.
Enclosed patch using preg_replace() instead.

CommentFileSizeAuthor
amazon_store_ereg_replace.patch749 bytespancho

Comments

rfay’s picture

It definitely should be preg_replace(). I'm surprised that had survived in there. Thought all my projects were 5.3 safe :-)

+1

pancho’s picture

Status: Needs review » Closed (fixed)

Committed to both D7 and D6 branches.

rfay’s picture

Status: Closed (fixed) » Fixed

Fantastic!

Please set the status to "Fixed" (not closed(fixed) where it will land in 2 weeks)

And please include the commit link. Easy to get right after a commit at http://drupal.org/cvs or on the commits page on the project page (lower right)
https://drupal.org/cvs?commit=490260
https://drupal.org/cvs?commit=490258

Thanks for your work on this!
-Randy

Status: Fixed » Closed (fixed)

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