Edit report at https://bugs.php.net/bug.php?id=46487&edit=1
ID: 46487 Comment by: jille at hexon dot cx Reported by: louis at steelbytes dot com Summary: 'no wait'/'detach' option for proc_close() Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Windows PHP Version: 5.2.6 Block user comment: N Private report: N New Comment: See also: http://news.php.net/php.internals/61168 and https://github.com/Jille/php-src/commit/31a1aa384c29487e077ccf3fd067eca188cf1201 Previous Comments: ------------------------------------------------------------------------ [2008-11-05 01:52:36] louis at steelbytes dot com 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 this bug report at https://bugs.php.net/bug.php?id=46487&edit=1