Hi,
Got this error with php 5.3: Unknown error: Function eregi_replace() is deprecated in smileys_filter_process() (line 283 of /var/www/mysite.com/site/sites/all/modules/smileys/smileys.module).
Any fix?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | smileys-1336612-4.patch | 1.97 KB | mr.j |
Comments
Comment #1
superfedya commentedI think this 2 line must be adapted to php 5.3.
$chunk = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url($GLOBALS['base_url'] .'/'. $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" class=\"smiley-content\"/>\\2", $chunk);$chunk = eregi_replace(preg_quote($a), '<img src="'. check_url($GLOBALS['base_url'] .'/'. $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $chunk);Comment #2
superfedya commentedAny news? This problem makes watchdog useless :(
Comment #3
mr.j commentedDisregard this one it was patched against an intermediate fix. See next comment
Comment #4
mr.j commentedThis patch works for me.