#50860 [Opn->Bgs]: exec() duplicates last output line
| From: | jani@php.net | Date: | Thu, 28 Jan 2010 08:34:11 +0000 |
| Subject: | #50860 [Opn->Bgs]: exec() duplicates last output line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147024@lists.php.net to get a copy of this message | ||
ID: 50860
Updated by: jani@php.net
Reported By: balazs at obiserver dot hu
-Status: Open
+Status: Bogus
-Bug Type: Unknown/Other Function
+Bug Type: Program Execution
Operating System: Debian Linux
PHP Version: 5.2.12
New Comment:
Thank you for not searching the bug database. This has already been
reported and fixed:
http://bugs.php.net/bug.php?id=50732
Previous Comments:
------------------------------------------------------------------------
[2010-01-27 12:35:42] 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) "("
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50860&edit=1