cli-server could not output correctly in some case.

 [2011-08-15 14:28 UTC] chobieee at gmail dot com

Description:
------------
cli-server couldn't output correctly when it writes little big contents (200k 
higher) on my OSX.

I'm not sure about network programming.
so i think my patch is not good to solve this issue.

can you make sure my patch?


fyi, when i output jquery file each 8192 bytes. it looks no problem.


Test script:
---------------
<?php
header("Content-type: text/plain");
$data = file_get_contents("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js");
header("Content-length: ". strlen($data));
echo $data;

Expected result:
----------------
It outputs fully contents.


 [2011-09-07 05:14 UTC] laruence@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence