|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-22 21:43 UTC] tony2001@php.net
[2005-12-07 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
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%