ID:               2587
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

$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] [EMAIL PROTECTED]

$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

Reply via email to