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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC