From:             carb at videotron dot ca
Operating system: RedHat 9.0
PHP version:      4.3.3
PHP Bug Type:     Filesystem function related
Bug description:  command from exec do not migrate in an openMosix cluster

Description:
------------
executing a command from PHP, the command does not get migrated in an
openMosix cluster, even if the command migrates when it is executed from
the command line.

Running "awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' >
/dev/null 2>&1 &" from a command line several times creates processes that
get migrated.  

Running the same thing several times from an exec in a PHP script does not
get migrated.  

The same problem occurs whether the script is executed from apache
"http://localhost/test.php/"; or the command line "php test.php"

Reproduce code:
---------------
<?PHP
  exec("awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' >
/dev/null 2>&1 &");

?>

Expected result:
----------------
When executing the script several times in an openMosix cluster, some of
the processes should migrate.

Actual result:
--------------
When executing the script several times in an openMosix cluster, none of
the processes migrate.

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

Reply via email to