|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 07 05:01:24 2020 UTC