#46487 [NEW]: 'no wait'/'detach' option for proc_close()

From: Date: Wed, 05 Nov 2008 01:52:36 +0000
Subject: #46487 [NEW]: 'no wait'/'detach' option for proc_close()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130629@lists.php.net to get a copy of this message
From: louis at steelbytes dot com Operating system: Windows PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: 'no wait'/'detach' option for proc_close() Description: ------------ I'd luv a 'no wait'/'detach' option for proc_close() so I can spawn a process and not wait for completion. current work arounds on windows 1) $WshShell = new COM("WScript.Shell"); $res = $WshShell->Run($cmd,0,false)==0; 2) $proc = @proc_open( '"'.getenv('ComSpec').'" /c start "php" '.$cmd ,array( 0=>array('file','nul','r'), 1=>array('file','nul','w'), 2=>array('file','nul','w') ) ,$pipes,NULL,NULL,array('bypass_shell'=>TRUE) ); if ($proc!==false) { proc_close($proc); $res = true; } else $res = false; Reproduce code: --------------- see above Expected result: ---------------- n/a Actual result: -------------- n/a -- Edit bug report at http://bugs.php.net/?id=46487&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46487&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46487&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46487&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46487&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46487&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46487&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46487&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46487&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46487&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46487&r=support Expected behavior: http://bugs.php.net/fix.php?id=46487&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46487&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46487&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46487&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46487&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46487&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46487&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46487&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46487&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46487&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46487&r=mysqlcfg

« previous php.bugs (#130629) next »