Bug #2587 Updated: maybe.. exec function has some problem
| From: | php-bugs at lists dot php dot net | Date: | Sun, 10 Feb 2002 03:32:26 +0000 |
| Subject: | Bug #2587 Updated: maybe.. exec function has some problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16@lists.php.net to get a copy of this message | ||
ID: 2587
Updated by: php-bugs@lists.php.net
Reported By: chul80@icm.re.kr
-Status: Feedback
+Status: No Feedback
Bug Type: Misbehaving function
Operating System: Solaris 2.6
PHP Version: 3.0.12
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2000-03-06 10:50:08] hholzgra@cvs.php.net
exec() cuts of trailing whitespace characters
from received output lines
it does so by using the isspace() C-function
so it will cut off any formfeed (0x0C), linefeed (0x0A),
carriage return (0x0D), vertical (0x09) and horizontal
(0x0B) tab characters, and of course space (0x20) itself
when using the default "C" locale
i don't know enough about locales in general and
especially multibyte characters in special, but this
might be the source source of the problem ?
------------------------------------------------------------------------
[1999-10-22 07:55:10] chul80@icm.re.kr
$command = "/bin/egrep \"(^metal)\" index.forum";
exec($command, $result);
for ($i = 0; $i < sizeof($result); $i++)
echo("$result[$i] <br>");
in this code,
Sometimes(!), strings in $result lose his end character.
not always!! why this blessed array sented to me!!
(please don't blame my english, I am a boy. You are a girl! yeh!)
please answer to my problem. is this bug?
Oh! $result only lose 2byte char...
eeeeeeee
------------------------------------------------------------------------
[1999-10-22 05:46:32] chul80@icm.re.kr
$command = "/bin/egrep \"(^metal)\" index.forum";
exec($command, $result);
for ($i = 0; $i < sizeof($result); $i++)
echo("$result[$i] <br>");
in this code,
Sometimes(!), strings in $result lose his end character.
not always!! why this blessed array sented to me!!
(please don't blame my english, I am a boy. You are a girl! yah!)
please answer to my problem. is this bug?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2587&edit=1