php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani

 [2001-04-28 09:22 UTC] elixer@php.net
Fixed in CVS.  Wait for 4.0.6.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 15:01:27 2019 UTC