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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 12:01:32 2025 UTC