#37789 [Bgs]: Function Loop, CPU 100%
| From: | lee dot sargeant dot ls at wbpdata dot com | Date: | Tue, 13 Jun 2006 09:33:40 +0000 |
| Subject: | #37789 [Bgs]: Function Loop, CPU 100% | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98319@lists.php.net to get a copy of this message | ||
ID: 37789
User updated by: lee dot sargeant dot ls at wbpdata dot com
Reported By: lee dot sargeant dot ls at wbpdata dot com
Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows 2000 Server SP4
PHP Version: 5.1.4
New Comment:
Ok, thankyou.
Previous Comments:
------------------------------------------------------------------------
[2006-06-13 09:11:30] mgf@php.net
No, the evidence so far points to it being a bug in your function which
shows up when $count==6. Please take this to a support forum and leave
the bug as bogus.
------------------------------------------------------------------------
[2006-06-13 08:57:27] lee dot sargeant dot ls at wbpdata dot com
I do not understand how it can not be a bug. There is a problem with
looping a function, clearly???
Thankyou.
------------------------------------------------------------------------
[2006-06-13 08:39:43] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This is not a support forum.
------------------------------------------------------------------------
[2006-06-13 08:17:52] lee dot sargeant dot ls at wbpdata dot com
You seem to mis-understand. The function is called in a loop with this
code:
$count = 1;
while($count <= 6)
{
//Set Field
$field = "final".$count;
//Get date
scheduleWorkingDay($query2[$field], $_POST['day'], $_POST['month'],
$_POST['year']);
$count++;
}
If you change the loop to run 5 times instead of 6 as it shows here it
will work fine. Anything above 5 and it will not work. 100% CPU Usage
as well as the fatal error after the 60 second timeout. I feel there is
something wrong, otherwise why would it work with 5 loops ok?
------------------------------------------------------------------------
[2006-06-12 21:15:34] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37789
--
Edit this bug report at http://bugs.php.net/?id=37789&edit=1