|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-13 19:28 UTC] mauroi at digbang dot com
[2006-04-13 19:30 UTC] tony2001@php.net
[2006-04-18 21:49 UTC] mauroi at digbang dot com
[2006-09-26 22:26 UTC] tony2001@php.net
[2006-10-04 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ With the following script (in CLI), sometimes I get -1 and sometimes 0. The report it's very similar to #8992, but with proc_close. With out withoud --enable-sigchild. Thanks in advance. Reproduce code: --------------- <? $cmd = "ls"; if ($process = popen($command, 'r')) { $output = stream_get_contents($process); $returnCode = pclose($process); } echo $returnCode . "\n"; ?> Expected result: ---------------- 0 Actual result: -------------- -1