Anonymous | Login | Signup for a new account | 11-17-2024 00:38 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001178 | [Quercus] | minor | always | 06-05-06 17:49 | 06-09-06 14:39 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.20 | ||||||
Summary | 0001178: set_time_limit() doesn't allow removing time limit | ||||||||
Description |
The PHP docs say "set_time_limit(0);" is supposed to remove the timeout for script execution; in Quercus this results in the time limit expiring immediately. The fix is trivial, just adding a check for a 0 time limit in checkTimeout(): public final void checkTimeout() { if (_timeLimit != 0) { long now = Alarm.getCurrentTime(); if (_startTime + _timeLimit < now) throw new QuercusRuntimeException(L.l("script timed out")); } } |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed. 25 unique queries executed. |