|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-20 11:56 UTC] jani@php.net
[2009-02-28 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
Description: ------------ ENGLISH: The function consumes 100% cpu when external url not answering the request wiht normally. Example: server busy SPANISH: La function file_get_contents('external_url') consume el 100% de cpu mientras espera la contestaci?n del otro servidor.Ejemplo: servidor ocupado. Reproduce code: --------------- <?php //ini_set('max_execution_time',500); More time, More CPU 100% $urlExternal = "http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=EUR&ToCurrency=USD"; $oneString = file_get_contents($urlExternal); echo $oneString; ?> Expected result: ---------------- Get a string of the page request. Actual result: -------------- CPU of server 100% usage all the time of the script execution until waiting the external server aswering.