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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

superfedya’s picture

I 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);

superfedya’s picture

Any news? This problem makes watchdog useless :(

mr.j’s picture

Version: 6.x-1.0 » 6.x-1.1
Issue summary: View changes
Status: Active » Needs review
FileSize
1.91 KB

Disregard this one it was patched against an intermediate fix. See next comment

mr.j’s picture

FileSize
1.97 KB

This patch works for me.