ID: 35340
Updated by: [EMAIL PROTECTED]
Reported By: gggiuly at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: Performance problem
+Bug Type: Unknown/Other Function
Operating System: GNU/Linux
PHP Version: 4.4.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Can't reproduce.
Previous Comments:
------------------------------------------------------------------------
[2005-11-22 21:38:03] gggiuly at gmail dot com
Description:
------------
THe CPU-Usage raises to 98% when a float was passed to this function,
which definitifely shouldn't happen.
Can be fixed with stars((int) 4.7) but shouldn't
Reproduce code:
---------------
function stars($full) {
for($i=0; $i<$full; $i++)
$toRet .= '<img src="images/star1.gif" width="10" height="10"
border="0">';
for($i=$full;$i<5;$i++)
$toRet .= '<img src="images/star2.gif" width="10" height="10"
border="0">';
return $toRet;
}
stars(3.4);
Expected result:
----------------
4x star1.gif, 1x star2.gif
Actual result:
--------------
Apache raises CPU-Usage at 98%
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35340&edit=1