php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62085 file_get_contents a remote file by Curl wrapper will cause cpu Soaring
Submitted: 2012-05-21 05:06 UTC Modified: 2012-09-28 19:30 UTC
From: shengdong01 at 163 dot com Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.13 OS: linux
Private report: No CVE-ID: None
 [2012-05-21 05:06 UTC] shengdong01 at 163 dot com
Description:
------------
client script:
<?php
   file_get_contents("http://localhost:8080/slow.php");


server script

<?php
/*slow.php*/
sleep(10);
echo "this is slow.php";

Test script:
---------------
client script:
<?php
   file_get_contents("http://localhost:8080/slow.php");


server script

<?php
/*slow.php*/
sleep(10);
echo "this is slow.php";


Expected result:
----------------
the cpu idle is still high

Actual result:
--------------
the cpu idle is still high,not slow any more

Patches

patched.txt (last revision 2012-05-21 05:06 UTC by shengdong01 at 163 dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-28 19:30 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2012-09-28 19:30 UTC] pierrick@php.net
The fix for this bug has been committed.

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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC