time_nanosleep won't throw a warning for negative second
| Bug #60222 | time_nanosleep won't throw a warning for negative second | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2011-11-04 22:00 UTC | Modified: | 2012-03-12 16:53 UTC |
|
||||||||||
| From: | tyrael@php.net | Assigned: | iliaa (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | Irrelevant | OS: | freebsd | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2011-11-04 22:00 UTC] tyrael@php.net
Description: ------------ time_nanosleep(-1, 0); should trigger "Warning: time_nanosleep(): nanoseconds was not in the range 0 to 999 999 999 or seconds was negative" but on FreeBSD 8.2 it will just sleep 0 sec. this also makes ext/standard/tests/misc/time_nanosleep_error3.phpt fail on FreeBSD Test script: --------------- <?php time_nanosleep(-1, 0); Expected result: ---------------- Warning: time_nanosleep(): nanoseconds was not in the range 0 to 999 999 999 or seconds was negative
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2012-03-12 16:53 UTC] iliaa@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: iliaa