|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8212 If the result of an exec() command is one character the result is empty.
Submitted: 2000-12-12 13:33 UTC Modified: 2001-04-28 09:22 UTC
From: dustin at intrcomm dot net Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.2 OS: RedHat/Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dustin at intrcomm dot net
New email:
PHP Version: OS:


 [2000-12-12 13:33 UTC] dustin at intrcomm dot net
echo "test = (" . exec("echo -n 'A'",$tmp) . ")";
echo "<br>test2 = (" . $tmp[0] . ")";

I get the following results

test = ()
test2 = (A)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-27 21:48 UTC]
Reproduceable with latest CVS (28.4.2001)


 [2001-04-28 09:22 UTC]
Fixed in CVS.  Wait for 4.0.6.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC