Bug #1781 Updated: PHP hangs and causes 100% CPU usage for over 5 mins.

From: Date: Sun, 16 Jun 2002 12:35:21 +0000
Subject: Bug #1781 Updated: PHP hangs and causes 100% CPU usage for over 5 mins.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10641@lists.php.net to get a copy of this message
ID: 1781 Updated by: sander@php.net Reported By: C.Just@its.uq.edu.au -Status: Open +Status: Bogus Bug Type: Performance problem Operating System: NT 4.0 latest service packs. PHP Version: 3.0.11 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-07-21 02:05:31] C.Just@its.uq.edu.au PHP 3.09 doesn't seem to have this problem so we have reverted back to it. But there are some functions in 3.0.11 that we do rely upon as well. PHP 3.0.11 causes the CPU usage to jump to 100% when we are including other files from external/local pages. We need to do this when including sections of ASP pages within our existing pages as this is not possible with ASP. I would like to rewrite these ASP pages in PHP but it is beyond my control. Here are the two methods I tried to use which caused the problems. -------------------------- // INCLUDE THE EVENTS PAGE AND SEND ON ANY $QUERY_STRING VARIABLES SENT TO THIS PAGE. $fp = fopen("http://".$HTTP_HOST."/news/events/c_public.asp?deptid=16&disptype=13&ahead_date=60&children=1&catid=9" ,"r"); while ( $val = fgets($fp, 512)) echo "$val \n"; -------------------------- This method causes PHP to flatline the server. -------------------------- // INCLUDE THE EVENTS PAGE AND SEND ON ANY $QUERY_STRING VARIABLES SENT TO THIS PAGE. $fp = file("http://".$HTTP_HOST."/news/events/c_public.asp?deptid=16&disptype=13&ahead_date=60&children=1&catid=9","r"); for($i=0; $i<count($fp); $i++) echo $fp[$i]."\n"; -------------------------- As does the one above. Also will there be any further versions of PHP3.0.11 now that PHP4 Beta has been released? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=1781&edit=1

« previous php.bugs (#10641) next »