Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in google_geocode_country_list() (line 74 of /sites/all/modules/location/geocoding/google.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2144653-preg_replace_e_deprecated-1.patch | 528 bytes | jeroent |
Comments
Comment #1
jeroentI'm not an regex expert but I don't know why the e is added at the end of the pattern. I deleted it, made a print_r of the clean country list before and after i removed the e at the end. Made a quick diff and the result is the same.
Comment #2
dancor commentedComment #3
podarokpostponing for now
5.5 is not development environment yet for drupal and we can`t remove functionality before it become mainstream
If You want to got this commited - You should create if/elseif statements(bad idea and spaghetti code) or disable deprecated warnings site wide via php.ini/.htaccess
Comment #4
mustanggb commentedWhat functionality is removed?
The matched values are replaced with an empty string that contains no backreferences.
Comment #5
boobaaThe patch does not remove functionality, but solves the issue clearly. Some may even think using the /e switch as a security issue, so simply let's ditch it.
Comment #6
podarok#1 commited
Thanks!
Comment #9
Chetna_Negi commented#1 worked.
Thanks JeroenT.