function sleep accept negative value
| Bug #36458 | function sleep accept negative value | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-02-20 04:24 UTC | Modified: | 2006-02-21 16:35 UTC | ||
| From: | quick_defect at yahoo dot com | Assigned: | |||
| Status: | Closed | Package: | Unknown/Other Function | ||
| PHP Version: | 5.1.2 | OS: | redhat | ||
| Private report: | No | CVE-ID: | None | ||
[2006-02-20 04:24 UTC] quick_defect at yahoo dot com
Description: ------------ First,if given negative value, I have to interrupt the execution of scripts because it sleep for very long time.(I did not exactly know how long) Second,if given a int which cause overflow, it also do not work very well. Reproduce code: --------------- sleep(-1); $max=mt_getrandmax(); $of=-$max-2; sleep($of); Expected result: ---------------- exception or turn it to a legal value Actual result: -------------- sleep for a very long time
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-02-21 09:14 UTC] quick_defect at yahoo dot com
[2006-02-21 09:19 UTC] quick_defect at yahoo dot com
[2006-02-21 16:35 UTC] iliaa@php.net