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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 43 = ?
Subscribe to this entry?

 
 [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: Sun Aug 18 19:01:27 2019 UTC