|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-06-16 07:53 UTC] marcaurel at gmx dot de
Description: ------------ I'm using PHP on Windows Server 2008 R2 SP1 / IIS7.5 I execute a PowerShell script via exec(). This PowerShell script produces output which is normally found in the output parameter of the exec() command. Since PHP 5.6.3 the output parameter of the exec() commmand is empty after the script has run. I've tested all versions from 5.6.1 to 5.6.10 The script is executed flawlessly with all versions but only 5.6.1 and 5.6.2 have the script's output in the exec() output parameter. All later versions fail to pass on the script output. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
I have the same but I have reproduce this bug <?php $output = ''; exec('echo a && echo. && echo b && (timeout 1 >nul) && echo c', $output); echo count($output); ?> With this code we have in output "3" The $output is array (size=3) 0 => string 'a' (length=1) 1 => string '' (length=0) 2 => string 'b' (length=1) but the $output must be array (size=4) 0 => string 'a' (length=1) 1 => string '' (length=0) 2 => string 'b' (length=1) 4 => string 'c' (length=1) Bug is present on PHP 5.6.11 On Windows 2008R2, 2012, 2012R2 With respectively IIS 7.5, 8 and 8.5 Foreach launch the command in Shell produce : a b c When we laucnh command by PHP directly (no IIS) this bug is not present This bug is not present on PHP5.5.4 (when launched by IIS) (previously version on servers) The programme is not interupted, just output was truncated