|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-30 23:11 UTC] marco dot agnoli at me dot com
[2017-03-30 23:24 UTC] marco dot agnoli at me dot com
[2018-08-10 15:55 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2018-08-10 15:55 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 03:00:01 2025 UTC |
Description: ------------ proc_open returns immediately when a reference to the returned resource is made. PHP 7.x shows the expected behaviour. Test script: --------------- <?php $spec = [ 0 => STDIN, 1 => STDOUT, 2 => STDERR ]; $pipes = []; echo 'Starting'.PHP_EOL; $proc = proc_open('sleep 3 ; echo "Hi"', $spec, $pipes); if (!is_resource($proc)) exit(1); $ref = &$proc; // Should wait but does not wait proc_close($proc); echo 'Done'.PHP_EOL; Expected result: ---------------- Starting Hi (after 3 seconds) Done Actual result: -------------- Starting Done Hi (after 3 seconds)