|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31792 getrusage() does not give ru_nswap
Submitted: 2005-02-01 12:37 UTC Modified: 2005-03-01 23:28 UTC
From: bertrand at toggg dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4CVS, 5CVS (2005-02-21) OS: *nix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bertrand at toggg dot com
New email:
PHP Version: OS:


 [2005-02-01 12:37 UTC] bertrand at toggg dot com
Although this resource usage is documented in PHP manual getrusage(),
ru_nwsap (number of swap) is not reported.
checking ext/standard/microtime.c, it's obviously not copied in the returned array.
Does exist a technical reason for that ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-13 21:43 UTC]
It's not ru_nwsap but ru_nswap (typo).
 [2005-02-14 00:19 UTC] bertrand at toggg dot com
Thanks vrana !
You're right, it's ru_nswap resource usage number of swap.
(as stated in title). So, back from bogus.
Do you have some answer about why it's not reported ?
 [2005-02-21 22:34 UTC]
This indeed is missing.

 [2005-03-01 22:34 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2005-03-01 23:28 UTC] bertrand at toggg dot com
Thank YOU guys DOING PHP better.
Longing to get the change :)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 12:01:29 2024 UTC