| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 Patchesproc_close-lingering.patch (last revision 2012-07-12 15:00 UTC by jille at hexon dot cx)Pull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2012-07-12 15:11 UTC] jille at hexon dot cx
  [2020-11-05 13:16 UTC] cmb@php.net
 
-Status:      Open
+Status:      Closed
-Package:     Feature/Change Request
+Package:     Program Execution
-Assigned To:
+Assigned To: cmb
  [2020-11-05 13:16 UTC] cmb@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
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