Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1178 | minor | always | 06-05-06 17:49 | 06-09-06 14:39 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.20 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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")); } } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |