How frequently does the letter "e" appear in:
If exec is used to start a command that outputs only a single byte, and if the $output array is used, the byte is added twice to the output array.
Tested with php 5.3.1 in cli mode on Windows 2003 Server and Ubuntu 9.10 Server.
If only a single byte is read, php_stream_eof(stream) returns true, thus no second loop will take place.
yields true and the buffer is added to the output array, again.
Of course, this applies as well to output that just ends with a newline followed by a single byte.
Log: Fixed bug #50732 (exec() adds single byte twice to $output array).
Log: - merge: Fixed bug #50732 (exec() adds single byte twice to  array).
user
In that passage, there are 59 occurrences of the letter "e."
assistant