php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50860 exec() duplicates last output line
Submitted: 2010-01-27 12:35 UTC Modified: 2010-01-28 08:34 UTC
From: balazs at obiserver dot hu Assigned:
Status: Not a bug Package: Program Execution
PHP Version: 5.2.12 OS: Debian Linux
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: balazs at obiserver dot hu
New email:
PHP Version: OS:

 

 [2010-01-27 12:35 UTC] balazs at obiserver dot hu
Description:
------------
Special characters, when exec() return duplicated last line:
( ) [ ] { }


Reproduce code:
---------------
unset($output);
exec('echo "("', $output, $retval);
var_dump($output);


Expected result:
----------------
array(1) {
  [0]=>
  string(1) "("
}


Actual result:
--------------
array(2) {
  [0]=>
  string(1) "("
  [1]=>
  string(1) "("
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-28 08:34 UTC] jani@php.net
Thank you for not searching the bug database. This has already been reported and fixed:

  http://bugs.php.net/bug.php?id=50732


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 23:01:30 2024 UTC