﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1485108,Function function rcmail_html_filter() problem with preg_replace for some HTML emails (Fatal error:  Maximum execution time of 120 seconds exceeded in func.inc on line 600),Makc666,,"''Function '''function rcmail_html_filter()''' problem with preg_replace for some HTML emails (Fatal error:  Maximum execution time of 120 seconds exceeded in func.inc on line 600)''

'''Steps:'''[[BR]]
1. Go to webmail and found the email I attached[[BR]]
2. Try to open it with double click that email[[BR]]
3. After 120 seconds I see 500 server error[[BR]]
4. In logs I see:
{{{
[07-Jun-2008 12:54:02]
PHP Fatal error:  Maximum execution time of 120 seconds exceeded in
/www/webmail/program/steps/mail/func.inc on line 600
}}}

''Line 600 is:''
{{{
$html = preg_replace('/'.preg_quote($tags[0][$nr], '/').'/', $newtag, $html);
}}}

If I comment out this line I can see that email vey quickly.

I will try to attach the email which causes the problem.[[BR]]
The email it take physically from server.[[BR]]
[[BR]]
Trying to change in '''index.php''':
{{{
if (!ini_get('safe_mode')) @set_time_limit(120);
}}}
to smth like 600 didn't give any result.[[BR]]
The same 500 serve r error and PHP Fatal error.",Bugs,closed,6,0.2-alpha,Core functionality,0.1.1,major,fixed,,
