Closed (fixed)
Project:
Amazon Store
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2011 at 23:52 UTC
Updated:
11 Feb 2011 at 00:10 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| amazon_store_ereg_replace.patch | 749 bytes | pancho |
Comments
Comment #1
rfayIt definitely should be preg_replace(). I'm surprised that had survived in there. Thought all my projects were 5.3 safe :-)
+1
Comment #2
panchoCommitted to both D7 and D6 branches.
Comment #3
rfayFantastic!
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