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
 [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: Thu Apr 25 08:01:28 2024 UTC