From:
Operating system: Windows Server 2008 R2
PHP version: 5.3.6
Package: Program Execution
Bug Type: Feature/Change Request
Bug description:Child process inherits parent priority
Description:
------------
I'm running PHP in above-normal priority and would like to have child
processes of it, spawned using proc_open, to inherit that priority level.
In Windows I believe this should just be a matter of running:
SetPriorityClass( GetCurrentProcess(), desired_priority );
I'm not sure if this is a bug report or a feature request though, I guess
it depends on how you view it.
Test script:
---------------
$path = "c:\\windows\\system32\\notepad.exe";
$descriptorspec = array();
$cwd = "c:\\windows\\temp";
$env = NULL;
$other_options = array(
'bypass_shell' => FALSE,
);
$resource = proc_open(
$path,
$descriptorspec,
$pipes,
$cwd,
$env,
$other_options
);
Expected result:
----------------
I expect the notepad.exe to have the abovenormal priority level, which is
what the parent php script was running at.
Actual result:
--------------
notepad.exe runs at the normal priority level.
--
Edit bug report at http://bugs.php.net/bug.php?id=54865&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54865&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54865&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54865&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54865&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54865&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54865&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54865&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54865&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54865&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54865&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54865&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54865&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54865&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54865&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54865&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54865&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54865&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54865&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=54865&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=54865&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=54865&r=mysqlcfg