ID:               29638
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at riggers dot me dot uk
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux Fedora Core 2
 PHP Version:      5.0.0
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

I changed the parameter name to "increment", and it now says:
"proc_nice increases the priority of the current process. You can use a
negative increment to decrease the priority."


Previous Comments:
------------------------------------------------------------------------

[2004-08-12 22:07:09] php at riggers dot me dot uk

Description:
------------
Value passes to proc_nice is aggregated, rather that set to the actual
value.

Reproduce code:
---------------
<?php

var_dump(proc_nice(3));
sleep(5);
var_dump(proc_nice(6));
sleep(5);
var_dump(proc_nice(7));
sleep(5);

?>

Inspect 'top' output as script is running

Expected result:
----------------
It is not made clear that the value is aggregated: it is reasonable to
assume from the docs that the nice level will be set to whatever you
pass.

After the 3rd call to proc_nice(), the nice value is 16 and not 7

Actual result:
--------------
Nice value is set to 16 correctly, but documentation does not make this
clear.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29638&edit=1

Reply via email to