Ticket #1485108 (closed Bugs: fixed)
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)
| Reported by: | Makc666 | Owned by: | |
|---|---|---|---|
| Priority: | 6 | Milestone: | 0.2-alpha |
| Component: | Core functionality | Version: | 0.1.1 |
| Severity: | major | Keywords: | |
| Cc: |
Description
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:
1. Go to webmail and found the email I attached
2. Try to open it with double click that email
3. After 120 seconds I see 500 server error
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.
The email it take physically from server.
Trying to change in index.php:
if (!ini_get('safe_mode')) @set_time_limit(120);
to smth like 600 didn't give any result.
The same 500 serve r error and PHP Fatal error.
