From:             php at riggers dot me dot uk
Operating system: Linux Fedora Core 2
PHP version:      5.0.0
PHP Bug Type:     Documentation problem
Bug description:  action performed by proc_nice() unclear

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 bug report at http://bugs.php.net/?id=29638&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29638&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29638&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29638&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29638&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29638&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29638&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29638&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29638&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29638&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29638&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29638&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29638&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29638&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29638&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29638&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29638&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29638&r=float

Reply via email to