Edit report at https://bugs.php.net/bug.php?id=55423&edit=1
ID: 55423 Updated by: larue...@php.net Reported by: chobieee at gmail dot com Summary: cli-server could not output correctly in some case. -Status: Open +Status: Closed Type: Bug Package: Built-in web server Operating System: Mac OS 10.6.7 PHP Version: 5.4.0alpha3 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-09-07 05:14:40] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=316298 Log: Fixed Bug #55423(cli-server could not output correctly in some case) ------------------------------------------------------------------------ [2011-08-15 14:28:01] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55423&edit=1