|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-08 08:20 UTC] robbert at muze dot nl
[2015-07-08 11:36 UTC] laruence@php.net
[2015-07-08 11:36 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-07-21 14:21 UTC] ab@php.net
[2016-07-20 11:37 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ exec does not remove the first char in a line of output, if it is whitespace if the line only contains " \n" the " " isn't striped Test script: --------------- <?php $output = array(); exec('/bin/echo -n -e "abc\f\n \n"',$output); var_dump($output); Expected result: ---------------- array(2) { [0]=> string(3) "abc" [1]=> string(0) "" } Actual result: -------------- array(2) { [0]=> string(3) "abc" [1]=> string(1) " " }