php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1781 PHP hangs and causes 100% CPU usage for over 5 mins.
Submitted: 1999-07-21 02:05 UTC Modified: 2002-06-16 08:35 UTC
From: C dot Just at its dot uq dot edu dot au Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 3.0.11 OS: NT 4.0 latest service packs.
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 - 22 = ?
Subscribe to this entry?

 
 [1999-07-21 02:05 UTC] C dot Just at its dot uq dot edu dot 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:35 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 17:01:30 2024 UTC