From: [EMAIL PROTECTED]
Operating system: RedHat7.2 and RedHat7.1
PHP version: 4.1.2
PHP Bug Type: Unknown/Other Function
Bug description: pcntl_wexitstatus does not return exit status
On Red Hat 7.2 and Red Hat 7.1,
pcntl_wexitstatus does not return exit status,
pcntl_wexitstatus returns 0.
when child process call [exit(1);]
and when father process run:
pcntl_waitpid($pid,$status,WNOHANG);
if(pcntl_wifexited($status)){
$exitstatus=pcntl_wexitstatus($status);
}
--
Edit bug report at http://bugs.php.net/?id=17014&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17014&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17014&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17014&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17014&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17014&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17014&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17014&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17014&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17014&r=globals